Jump to content

Edit History

AETtec

AETtec


edit title and adding more info

Hello.

Im so newbie at php and i want show the reference of each product on a near/visible place around button add to cart and price. So

so i did the next modification:

My version of PS is 1.7.6.1

1) File "only-reference.tpl" created on next location: /themes/newyork_home1/templates/catalog/_partials/only-reference.tpl
and writed the next code inside the file:

    {if isset($product.reference_to_display)}
      <div class="product-reference">
        <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label>
        <span itemprop="sku">{$product.reference_to_display}</span>
      </div>
    {/if}

 

2) Modify the next file: /themes/newyork_home1/templates/catalog/product.tpl
and insert this code:
 

                    {block name='only-reference'}
                    {include file='catalog/_partials/only-reference.tpl'}
                    {/block}


The result...? yes the reference is on the correct place now, but it doesnt refresh when i change to other combination of the product, so i need help to fix it.
Please!
 

imagen.png

AETtec

AETtec


remove double image

Hello.

Im so newbie at php and i want show the reference of each product on a near/visible place around button add to cart and price. So

so i did the next modification:
 

1) File "only-reference.tpl" created on next location: /themes/newyork_home1/templates/catalog/_partials/only-reference.tpl
and writed the next code inside the file:

    {if isset($product.reference_to_display)}
      <div class="product-reference">
        <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label>
        <span itemprop="sku">{$product.reference_to_display}</span>
      </div>
    {/if}

 

2) Modify the next file: /themes/newyork_home1/templates/catalog/product.tpl
and insert this code:
 

                    {block name='only-reference'}
                    {include file='catalog/_partials/only-reference.tpl'}
                    {/block}


The result...? yes the reference is on the correct place now, but it doesnt refresh when i change to other combination of the product, so i need help to fix it.
Please!
 

imagen.png

AETtec

AETtec


remove double image

Hello.

Im so newbie at php and i want show the reference of each prodocut on a near/visible place around button add to cart and price. So

so i did the next modification:
 

1) File "only-reference.tpl" created on next location: /themes/newyork_home1/templates/catalog/_partials/only-reference.tpl
and writed the next code inside the file:

    {if isset($product.reference_to_display)}
      <div class="product-reference">
        <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label>
        <span itemprop="sku">{$product.reference_to_display}</span>
      </div>
    {/if}

 

2) Modify the next file: /themes/newyork_home1/templates/catalog/product.tpl
and insert this code:
 

                    {block name='only-reference'}
                    {include file='catalog/_partials/only-reference.tpl'}
                    {/block}


The result...? yes the reference is on the correct place now, but it doesnt refresh when i change to other combination of the product, so i need help to fix it.
Please!
 

imagen.png

AETtec

AETtec

Hello.

Im so newbie at php and i want show the reference of each prodocut on a near/visible place around button add to cart and price. So

so i did the next modification:
 

1) File "only-reference.tpl" created on next location: /themes/newyork_home1/templates/catalog/_partials/only-reference.tpl
and writed the next code inside the file:

    {if isset($product.reference_to_display)}
      <div class="product-reference">
        <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label>
        <span itemprop="sku">{$product.reference_to_display}</span>
      </div>
    {/if}

 

2) Modify the next file: /themes/newyork_home1/templates/catalog/product.tpl
and insert this code:
 

                    {block name='only-reference'}
                    {include file='catalog/_partials/only-reference.tpl'}
                    {/block}


The result...? yes the reference is on the correct place now, but it doesnt refresh when i change to other combination of the product, so i need help to fix it.
Please!

imagen.png.0036bfae6d9dd219ea3edd985005c09e.png

imagen.png

×
×
  • Create New...