Skip to main content

New button on Product Page

More
13 years 4 months ago - 13 years 4 months ago #105458 by lanzanet
Hi. How can I add a new button on the Product page to link to an externat url or to an article of my Joomla site? (the same for all products)

Thanks.
Last edit: 13 years 4 months ago by lanzanet.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #105469 by Xavier
Replied by Xavier on topic New button on Product Page
Hi,

You can edit the view "product / show_default" and add the desired button in the page template.
This view is accessible from the menu Display > Views.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #105479 by lanzanet
Replied by lanzanet on topic New button on Product Page
Hi, thanks for the reply. I'm not very familiar with some php code, but I tried to add the new button with a similar code than the 'contact us' button. The button appears ok but I don't know how to set the parameters to the 'displayButton' function. Please, Can you tell me a little sample of a call from this function to an external link (' www.google.es ')? Could it be oppened in a new window?
Code:
<div id="hikashop_product_contact_main" class="hikashop_product_contact_main"> <?php echo $this->cart->displayButton('New Button Text', 'contact_us', $params, '', ''); ?> </div>
Could the button link to an article so the article info would appears in the article section (center page section)?

Thanks.
Last edit: 13 years 4 months ago by Jerome.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #105539 by Jerome
Replied by Jerome on topic New button on Product Page
Hi,

The "displayButton" is an internal function which allow us to display specific button (like the "add to cart").
It is better for you to create a generic button in HTML directly and set your own link and your own parameters (like some javascript to open a link in a new window).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.165 seconds
Powered by Kunena Forum