Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello Larowlan,
How are you. I used your code for redirection after room type content save. My goal is that the user which is adding the room content type should paid some amount. So now i can have redirection on cart after node creation . But the amount it shown null. Where we will add price . Can you clear that my goal user who add room content type should pay some amount can be achieved ?
Thanks
CIS.Drupal
Comments
Comment #1
larowlanYou need a normal product node that is the cost of listing, ie not a hotel room type node.
Then you can add that item to the cart on redirect, have a look at what Ubercart does with the add to cart form when it is submitted and mimic that. I'd guess you are getting no price because you don't have the right cart data.
Comment #2
cis.drupal CreditAttribution: cis.drupal commentedHello Larowlan,
My problem have been solved i used nid of product content type while redirecting my node and adding content to cart.
Thanks