Edit productdetail layot - which file ?

4 years 10 months ago
Posts: 10
More
Topic Author
Edit productdetail layot - which file ? #314
Hi,

I want to add some images on the productdetail page depending on the stock situation but cant find which file to edit for this.

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

4 years 10 months ago 4 years 10 months ago by zsimaiof.
Posts: 1284
More
Edit productdetail layot - which file ? #315
Hi,

You can change in this file.

templates\yoo_xxx\html\com_virtuemart\themes\default\productdetails\default_images.php

Thanks

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

4 years 10 months ago
Posts: 10
More
Topic Author
Edit productdetail layot - which file ? #316
I did not explain very well.

You can check www.batterikungen.se on a product. We have images there depending on our stock using this code :

<?php if (($this->product->product_in_stock > 5)) echo "<img src=\"/images/stories/rocket.png\" />"?>
<?php if (($this->product->product_in_stock < 5 and $this->product->product_in_stock > 1 )) echo "<img src=\"/images/stories/green.png\" />"?>
<?php if (($this->product->product_in_stock < 1)) echo "<img src=\"/images/stories/slutilager.gif\" />"?>

I want this image in the layout ( see image )



So I wonder what file to edit.
Attachments:

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

4 years 10 months ago
Posts: 1284
More
Edit productdetail layot - which file ? #317
There is separate layout for each blog.

If you need changes around addtocart blog per screenshot, you can use this file.

templates\yoo_master2\html\com_virtuemart\themes\default\productdetails\default_addtocart.php

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

4 years 10 months ago
Posts: 10
More
Topic Author
Edit productdetail layot - which file ? #318
Thanks, got it :)

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

Time to create page: 0.096 seconds
Powered by Kunena Forum

We accept PayPal, 2Checkout & Electroneum payments:

We accept PayPal payments    We accept 2checkout payments  electroneum payment


For news and updates please like :