Jump to content
  • 0

Coupon In Direct Order Urls


ctalkington

Question

The following page mentions "The coupon may be set automatically when added to a URL at /order/main/ or /order/config/ using the parameter coupon."

 

http://docs.blesta.com/display/user/Order+System#OrderSystem-LinkingtoanOrderFormtoIncludeaCoupon

 

However, when using the wizard list the "/order/config/" aspect doesn't work (ie /order/config/index/web-hosting/?group_id=2&pricing_id=13&coupon=10off) will take you to the product but won't actually apply the coupon.

 

I found that adding the preAction block found in "plugins/order/controllers/main.php" to "/plugins/order/controllers/config.php" that it applies the coupon correctly.

 

Is there a reason why this logic wasn't added originally?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...