P
P
Pavel2015-12-02 21:28:52
PHP
Pavel, 2015-12-02 21:28:52

How to display virtuemart image?

there is a product ID1 I
want to display images in the product description, <img src="/images/all/id-1">
but replacing 1 with the code for receiving the id of the current product

<img src="/images/all/id-<?php echo 'virtuemart_product_id' ?>">

<?php echo 'virtuemart_product_id' ?>I'm not sure about the correctness of the code ,
but the bottom line is that at the moment the code is not being executed in any way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vdvpie22, 2015-12-04
@vdvpie22

If you edit through the product template, you can:
Or
where images[0] is the number of the image in the product

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question