- Posts: 223
- Thank you received: 1
Manufacturer URL in pop-up window
- plumbingdeals
-
Topic Author
- Offline
would this be done on the show.php page, and what would the code need to be?
thanks
Please Log in or Create an account to join the conversation.
echo JText::sprintf('MANUFACTURER_URL','<a href="'.$this->element->product_url.'" target="_blank">'.$this->element->product_url.'</a>');
in the file "show" of the "product" view that you can edit via Display->Views.
You could use that code instead:
JHTML::_('behavior.modal');
echo JText::sprintf('MANUFACTURER_URL','<a class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" href="'.$this->element->product_url.'" >'.$this->element->product_url.'</a>');
Please Log in or Create an account to join the conversation.
- plumbingdeals
-
Topic Author
- Offline
- Posts: 223
- Thank you received: 1
inserted code, but when i try and view product, receive this error msg:
"Parse error: syntax error, unexpected T_ECHO in /home/advplbg/testsite.decorativeplumbingonline.com/templates/jsn_epic_pro/html/com_hikashop/product/show.php on line 204"
thanks,
Walter
Please Log in or Create an account to join the conversation.
JHTML::_('behavior.modal');
and not
JHTML::_('behavior.modal')
Please Log in or Create an account to join the conversation.
- plumbingdeals
-
Topic Author
- Offline
- Posts: 223
- Thank you received: 1
made the change, now page loads, but url show twice, and is not clickable....see image
here is url for page testpage
Please Log in or Create an account to join the conversation.
The second line should be:
echo JText::sprintf('MANUFACTURER_URL','<a class="modal" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="'.$this->element->product_url.'" >'.$this->element->product_url.'</a>');
and not:
echo JText::sprintf('MANUFACTURER_URL','<a class="modal" rel="{handler: 'iframe', size: {x: 450, y: 480}} href="'.$this->element->product_url.'" >'.$this->element->product_url.'</a>');
Please Log in or Create an account to join the conversation.
- plumbingdeals
-
Topic Author
- Offline
- Posts: 223
- Thank you received: 1
meanwhile, now result is:
Parse error: syntax error, unexpected T_STRING in /home/advplbg/testsite.decorativeplumbingonline.com/templates/jsn_epic_pro/html/com_hikashop/product/show.php on line 204
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- plumbingdeals
-
Topic Author
- Offline
- Posts: 223
- Thank you received: 1
you are the best! I made a minor tweak to change size, but otherwise it is perfect!
final result can be seen here:
here is url for page testpage
Please Log in or Create an account to join the conversation.
- Posts: 102
- Thank you received: 0
i would like to show my products in a native popup instead of using a plugin (what i was doing)
so that when you click to see options just a little box appears with the price and quantity and add to cart.
i have already formatted the product page for this.
here is what i did for the call to it
<?php JHTML::_('behavior.modal');
?>
<div id="options"><a href="<?php echo $link;?>" class="modal" rel="{handler: 'iframe', size: {x: 450, y: 480}}">
<?php
echo 'Choose Options';
?>
</a>
</div>
the problem is it opens a page with the whole site template around it and not just the content of that particular product. is ther a way to do this?
thanks, liz
Please Log in or Create an account to join the conversation.
So the line:
$link = hikashop_completeLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway);
should be:
$link = hikashop_completeLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway.'&tmpl=component');
Please Log in or Create an account to join the conversation.
- Posts: 102
- Thank you received: 0
and preferably take you to the cart page in the main window?
Please Log in or Create an account to join the conversation.
$js = 'window.location = \''.urldecode($url).'\';';
to:
$js = 'window.parent.location = \''.urldecode($url).'\';';
in the file administrator/components/com_hikashop/helpers/cart.php
so that it's the main page which is refreshed.
You could also do that modification with a hikashop_cart_js_render template override as explained in the developer documentation but it's more complicated.
Please Log in or Create an account to join the conversation.
- Posts: 102
- Thank you received: 0
templates/YOUR_TEMPLATE/html/hikashop_cart_js_render.php with the code from cart.php but with your alteration from below? do i replace the whole file or just the function in that section of cart.php?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 102
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 102
- Thank you received: 0
www.dnbsandbox.com/markethall/pasta-shop...ping/product/listing
click any item to choose options and the product->show page opens then submit it to the cart and you will see it--well, not happening
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 102
- Thank you received: 0
[EDIT] sorry, almost did it. now the ajax that controls the variation name doesnt work. so if you pick a variation/characteristic... it should change the title.. and then put the right one in the cart. now it doesnt do that.
L
Please Log in or Create an account to join the conversation.