• 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

where point to catch $POSt, $GET

0 votes
I'm checking the file /product/detail.php and follow it' Code Stream, and test Add To Card button, that use javascript to submit so it's hard to find where to catch this $POST. If you had experience, please help! thank you!
asked 2013-10-08 by NewDays (270 points) GEISYAGEISYA

1 Answer

+1 vote
If you want to catch the post or get details for product/detail.php, you'll have to modify the action() function in data/class/products/LC_Page_Products_Detail.php

From there, you can either check the post value directly ( $_POST['your_value'] ) or, once you've called lfInitParam(), you can use $this->objFormParam->getValue('your_value') to pull the same data.
answered 2013-10-09 by justcubed (1,120 points) SAMURAISAMURAI
...