The agree to terms and conditions link to the article does not display any content.
I have selected to appropriate article to display, but when I click on the terms and conditions link at the bottom of the checkout page, it opens a new window that is blank, and if I view the source, the content is there but is not displayed in the popup window?
I have tried this with my Gantry5 template, and the default Protostar template with same results.
PhocaCart 3.3.2
Joomla 3.9.11
PHP 7.3
Agree to terms and conditions popup blank
- shibumi
- Phoca Enthusiast
- Posts: 97
- Joined: 11 Sep 2016, 22:22
- shibumi
- Phoca Enthusiast
- Posts: 97
- Joined: 11 Sep 2016, 22:22
Re: Agree to terms and conditions popup blank
If I manually edit /components/com_phocacart/views/checkout/view.html.php at line 83 to this:
changing
to
My terms popup will work
original link created by JRoute was like this:
Code: Select all
79 // Terms and Conditions
80 $this->t['display_checkout_toc_checkbox'] = $this->p->get( 'display_checkout_toc_checkbox', 2 );
81 if ($this->t['display_checkout_toc_checkbox'] > 0) {
82 $this->t['terms_conditions_custom_label_text'] = $this->p->get( 'terms_conditions_custom_label_text', 0 );
83 //$linkTerms = JRoute::_( PhocacartRoute::getTermsRoute(0, 0, 'tmpl=component'));
84 $linkTerms = "https://canadianshowcar.ca/terms-of-use?tmpl=component";
85 $defaultText = JText::_('COM_PHOCACART_I_HAVE_READ_AND_AGREE_TO_THE'). ' <a href="'.$linkTerms.'" onclick="phWindowPopup(this.href, \'phWindowPopupTerms\', 2, 1.6);return false;" >' . JText::_('COM_PHOCACART_TERMS_AND_CONDITIONS') . '</a>';
86 $this->t['terms_conditions_label_text'] = PhocacartRenderFront::renderArticle((int)$this->t['terms_conditions_custom_label_text'], 'html', $defaultText);
87 }
Code: Select all
//$linkTerms = JRoute::_( PhocacartRoute::getTermsRoute(0, 0, 'tmpl=component'));
Code: Select all
$linkTerms = "https://canadianshowcar.ca/terms-of-use?tmpl=component";
original link created by JRoute was like this:
Code: Select all
https://canadianshowcar.ca/store/buy-photos/terms?tmpl=component
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Agree to terms and conditions popup blank
Hi, JRoute uses some menu link to build the URL. Did you craete more menu links to Phoca Cart? What menu link type is the menu to "store" url? (which menu link has "store" alias?)
Jan
Jan
If you find Phoca extensions useful, please support the project
- shibumi
- Phoca Enthusiast
- Posts: 97
- Joined: 11 Sep 2016, 22:22
Re: Agree to terms and conditions popup blank
"Store" menu item is menu type heading with "Buy Photos" - Phoca Cart » Categories View (Category list layout - default view) as a submenu under Store, but Terms has a hidden menu link to /terms-of-use
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Agree to terms and conditions popup blank
Hi, hmmm, testing now, created hidden menu link to terms and conditions, clicking on such link:
Everything is working OK:
When you disable SEF, do you get the same problems?
Jan
Everything is working OK:
When you disable SEF, do you get the same problems?
Jan
If you find Phoca extensions useful, please support the project