How can I make a clickable Product Code in Product page?
For example, the product code is 123, I wish users can go to http://www.example.com/product/123
Which file should I change?
For example, the product code is 123, I wish users can go to http://www.example.com/product/123
Which file should I change?
Not sure what you really mean here.
If you are already on the product page, why would you want the product code clickable? Wouldn't you just be clicking to return to the same page?
If you mean you want a product code on a "category" page for a product, and you want that model code to click to a product page, then you need to modify category.tpl. Have a look at "name" on the category page and use that code to wrap around model
If you are already on the product page, why would you want the product code clickable? Wouldn't you just be clicking to return to the same page?
If you mean you want a product code on a "category" page for a product, and you want that model code to click to a product page, then you need to modify category.tpl. Have a look at "name" on the category page and use that code to wrap around model
No. The example.com I mention here is an external link to other domain, e.g. a library website with book ID as query parameter
You can to create seo keywords like this.
Thanks and Best Regards,
Axansh Sheth
Our Opencart Module
All in ONE SEO |
Multi-purpose pop |
Restaurant theme |
Store time save module
Edit catalog/view/theme/YOUR_THEME/template/product/product.tplshivanraptor wrote:No. The example.com I mention here is an external link to other domain, e.g. a library website with book ID as query parameter
Find:
Code: Select all
<?php echo $model; ?>
Code: Select all
<a href="http://example.com/product/<?php echo $model; ?>" target="_blank" title="<?php echo $heading_title; ?>"><?php echo $model; ?></a>
Who is online
Users browsing this forum: No registered users and 74 guests