Hello everyone,
I state that i'm new with drupal and so at the moment i'm not practical with the creation of new modules or writing PHP codes .. thi is my question :
I'm making a shopping online site with Ubercart and I 'm running into a problem like this:
I wish I could rewrite the output of the selling price in my views and make sure that the form add_to_cart save to cart and to order the price rewrited on view and not the original price of the product. .

At the time I tried to rewrite the output of the field i can see the variation correctly in views, but when the customer adds the item to the cart , is reconsidered the original sale price set in the product.

I hope you can help me ..
thank you in advance

Comments

nevets’s picture

Why are you trying to change the price without changing the actual product price?

There are modules that adjust the price for various conditions.

marco85’s picture

Because i retrieve the correct price for the current customer by consuming web services resource that retrieve the information from another Database..so i've the correct price in a another field of my view and would like to use that price for add_to_cart the product.

i hope you understad my english.

nevets’s picture

Which commerce module are you using, Drupal commerce or ubercart?

marco85’s picture

Ubercart

nevets’s picture

https://www.drupal.org/project/uc_price_per_user provides per user pricing. You would need a custom version since your prices come from a service, but this should illustrate the correct way to modify the price.