Jump to content

Récuperer "champ personalisé" pour le multiplié au prix unitaire


Recommended Posts

Bonjour à tous

Tout est dans le titre

grand débutant

j'essaye de mettre en place une catégorie vente au mètre en me servant du champ personalisé.

 

je passe par shopping-cart.tpl et shopping-cart-produc-line.tpl ( peut on passer autrement ?)

 

j'ai essayé de récupérer le champ personnalisé en "bidouillant" ceci mais il doit manqué quelque chose ...

si quelq'un pourrait m'éclairer ;)

 

{if isset($customizedDatas.$productId.$productAttributeId)}

{foreach from=$customizedDatas.$productId.$productAttributeId key='id_customization' item='customization'}

 

 

{foreach from=$customization.datas key='type' item='datas'}

 

{if $type == $CUSTOMIZE_TEXTFIELD}

 

{foreach from=$datas item='textField' name='typedText'} {displayPrice price=$total_products*$textField.value}{$textField.value}{/foreach}

 

{/if}

{/foreach}

 

{/foreach}

 

{/if}

{/foreach}

Link to comment
Share on other sites

j'ai bientôt fini, mal à la tête pour essayer de tout comprendre ;)

 

il me manque une fonction et je voudrai savoir si elle existe déjà

 

Comment récuperer la catégorie du produit dans shopping-cart.tpl

 

si une âme charitable pourrait m'aider :wub:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...