I have created this,
<input type="button" value="Details" onclick="('<?php echo $product['href']; ?>');" class="button" />
But nothing seems to be displaying on the frontend.
Anyone have any advice?
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Could you attach file catalog/view/theme/default/template/product/category.tpl, so we can take a look it closer?toad78 wrote:I have a product page (based upon one category item) in a Grid system. I want to add a 'Details' link next to the 'Add to Cart' button.
I have created this,
<input type="button" value="Details" onclick="('<?php echo $product['href']; ?>');" class="button" />
But nothing seems to be displaying on the frontend.
Anyone have any advice?
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
I can see the detail button.
Attachments
category.png (77.96 KiB) Viewed 2213 times
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
You can replace the above code with code belowtoad78 wrote:Yes, I can see it too, but the link doesn't work.
Code: Select all
<a href="<?php echo $product['href']; ?>" class="button">Details</a>
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
You can try this codetoad78 wrote:Thank you, viethemes.
Then how can I make this adaptable to the language file? Say I want to change the text 'Details' to something else, but without have to edit the template? How can this be accomplished?
Code: Select all
<a href="<?php echo $product['href']; ?>" class="button"><?php echo $this->language->get('text_details'); ?></a>
Code: Select all
$_['text_details'] = 'Details';
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
Can you please let me know how i can add Detail button in this site?
Thank you
Users browsing this forum: No registered users and 97 guests