Page 1 of 1
Agree to terms and conditions popup blank
Posted: 17 Aug 2019, 21:26
by shibumi
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
Re: Agree to terms and conditions popup blank
Posted: 17 Aug 2019, 21:47
by shibumi
If I manually edit /components/com_phocacart/views/checkout/view.html.php at line 83 to 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 }
changing
Code: Select all
//$linkTerms = JRoute::_( PhocacartRoute::getTermsRoute(0, 0, 'tmpl=component'));
to
Code: Select all
$linkTerms = "https://canadianshowcar.ca/terms-of-use?tmpl=component";
My terms popup will work
original link created by JRoute was like this:
Code: Select all
https://canadianshowcar.ca/store/buy-photos/terms?tmpl=component
Re: Agree to terms and conditions popup blank
Posted: 18 Aug 2019, 11:56
by Jan
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
Re: Agree to terms and conditions popup blank
Posted: 18 Aug 2019, 16:14
by shibumi
"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
Re: Agree to terms and conditions popup blank
Posted: 22 Aug 2019, 17:34
by Jan
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