Jump to content

[SOLVED] Show the value of declination value on delivery pdf


Superbegood31
 Share

Recommended Posts

Hello,

I want to display on the delivery pdf the declination value chosen by the customer.

For example:

For a product with a declination "Music", the customer chooses the value "4 Seasons."

I would like to display on delivery pdf only:

Your choice: "The 4 Seasons"

Currently, everything is informed of a block (product + declination)

Thank you in advance for your help

Edited by SWITCHBOARD (see edit history)

Share this post


Link to post
Share on other sites

It depends on your product names, but the product + attribute combination is always something like:

 

Printed Dress - Color : Orange, Size : S

 

and you can try to split product and attribute by "-" character.

Share this post


Link to post
Share on other sites

Thank you for your return

For example the name of my product with its variations as it appears on my delivery PDF:
PRE-DECROCHE - Texte libre - Langue étrangère : Aucune, Musique : JazzUp

In delivery-slip.tpl I trying
{$ order_detail.product_name | strpos: "Musique"}
But it return a number out I want all that is before "Musique" is cleared
as below

Musique : JazzUp

 

Thanks

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More