Jump to content

How to add dynamic attribut on each items of the Cart ?


mrdan
 Share

Recommended Posts

Hi everybody,
It's the first time I post. I don't find any answer of my question on the forum.
I must develop my own module in compatibility with Prestaphop.
I want, when a visitor purchase a hosting plan, he chose his domain, and the domain he chose must be viewed in Cart and Orders.
Example in the cart page :
----------------------------------------
Item 1 :

- REF : HOSTING100

- Description : One year hosting 100 Mo

- Domain Name : mydomain.com <-- this is what I want to add

- Price : 20$

Item 2 :

- REF : HOSTING500

- Description : One year hosting 500 Mo

- Domain Name : myotherdomain.com <-- this is what I want to add

- Price : 40$

-----------------------------------------


So the question is :
What is the best solution to add this dynamic attribut (Domain Name) in each item of the cart and the order ?
What hook can I use to display other informations un each item ? shoppingCartExtra ?

If it's possible, I think it's better if the customer chose his domain before he click on ADD TO CART, like combinations.
But how to do this ?

Thanks for the answers
and sorry for my english

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