Forums / Contribution-Writing Guidelines / help with mod please

help with mod please

Locked
Results 1 to 3 of 3
This thread is locked. New replies are disabled.
04 Jan 2010, 03:01
#1
drillsar avatar

drillsar

New Zenner

Join Date:
May 2005
Posts:
28
Plugin Contributions:
0

help with mod please

ok in oscommerce admin/categories.php

there is a couple of lines like this im trying to figure out the change to zen cart

Oscommerce code:

tep_db_prepare_input($HTTP_POST_VARS['products_model']),
tep_db_prepare_input($HTTP_POST_VARS['products_price']),

where is this in zen cart, what im trying to do is use contribution mvs from oscommerce to zen cart, any help please
04 Jan 2010, 13:40
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Posts:
1,054
Plugin Contributions:
2

Re: help with mod please

Replace the tep_db_prepare_input function with zen_db_prepare_input, and use $_POST rather than $HTTP_POST_VARS.

New lines would be
zen_db_prepare_input($_POST['products_model']),
zen_db_prepare_input($_POST['products_price']),


Absolute
05 Jan 2010, 02:37
#3
mattymatt avatar

mattymatt

Zen Follower

Join Date:
Dec 2009
Posts:
234
Plugin Contributions:
1

Re: help with mod please

Absolute,

This is totally off topic, but your demo store has been hacked, if you look at the source code just after

[html]<!--bof- site copyright display -->[/html]

You've been hacked and had a load of advertising for male enhancing medication added.