• Register
Plug-in Tutorial Build an EC-CUBE plug-in

Top Commentators

114

1

EC Mike

SHOGUNSHOGUN

32

2

hrbabu

SAMURAISAMURAI

29

3

Sumant Jha

SAMURAISAMURAI

29

4

justcubed

SAMURAISAMURAI

21

5

Ashok Kafle

SAMURAISAMURAI

21

6

shahith

SAMURAISAMURAI

14

7

Jeemusu

KABUKIKABUKI

14

8

Yangsin

KABUKIKABUKI

9

9

Zaw Hlaing Bwar

GEISYAGEISYA

8

10

Fei Liu

GEISYAGEISYA

Ranking Key

  • FUJISANFUJISAN1,000+ posts
  • SAKURASAKURA500+ posts
  • SHOGUNSHOGUN100+ posts
  • NINJYANINJYA50+ posts
  • SAMURAISAMURAI20+ posts
  • KABUKIKABUKI10+ posts
  • GEISYAGEISYALess than 10 posts

Coupon Generation

+1 vote
Is there a way to generate a one-time-use coupon in EC-Cube programmatically? Also, is there a way to apply free shipping to an order/cart session programmatically?
asked 2013-08-19 by justcubed (1,120 points) SAMURAISAMURAI

1 Answer

0 votes
 
Best answer
Hello Justcubed,

By default there is no function to generate a coupon. However we have a point system which you may be able to manipulate.

In regards to shipping, it all depends when and where you want to change the shipping variable. If you peform a var_dump of $this->arrForm on the LC_Page_Shopping_Confirm, you should see the shipping variable. You should be able to set  shipping to 0 here.

I hope that helps!

Thanks,

Mike
answered 2013-08-19 by EC Mike (6,360 points) SHOGUNSHOGUN
selected 2013-10-09 by justcubed
...