Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tracking


gotcha5832

Recommended Posts

Hi everybody,

 

First sorry If I didn't post in the good place

 

I developed a contrib which display a random selection of 4 products, in define range of price, at the bottom of shopping_cart.php.

 

Like this, customer navigate, create its basket and before ordering he can add some cheap product to his basket.

 

I would like to track these additions, so allowing me to see if this contrib is useful or not.

1 °-how many customer add product by this way to there basket

2 °-how many finalize order, have product added by this way.

 

1 °) on the button of addition in the basket,

add = ' < has href = ' ". Tep_href_link (basename (PHP_SELF), tep_get_all_get_params (array ('action'('share'))). ' Action=buy_now*products_id = '. Cross [' products_id ']). ' " > '. Tep_image_button (' button_add.gif ', IMAGE_BUTTON_BUY_NOW). ' < / has > *nbsp ';

I'm using the action "buy_now" so I thought to create a new action "buy_now_2", identical in "buy_now" but which add to a new table "product_beforepay" an entrance including id of the product, basket_id

A file of stat which looks for in this table "product_beforepay", which looks for quite the entered to sort out by date / product...

That go!! That gets more complicated for the second part.

 

2 °) but to cross this with finalize order it will be more difficult:

This contrib is use also before to log, so I cannot use customer_id, or customer basket.

So I really don't know.

 

Thank you

 

P.S.: Sorry for my english, I'm french, and my english are very poor.

Edited by gotcha5832
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   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.

×
×
  • Create New...