Sorry the server was down for a bit, back up now.
Thanks, Leora
Sorry the server was down for a bit, back up now.
Thanks, Leora
I know this is an old post, but just in case there's someone trying to do this, here's a quick workaround.
Open up includes/init_includes/init_sanitize.php and add a new conditional if statement to bypass the security restriction for the actions you need. For example, this will allow you to add items to the cart without a securityToken present:
Enjoy!PHP Code:// Line 30: Add if statement around zen_redirect() function call
if(!(
$_GET['action'] == 'add_product'
&& isset($_POST['cart_quantity'])
&& !empty($_POST['products_id'])
)) {
zen_redirect ( zen_href_link ( FILENAME_TIME_OUT, '', $request_type ) );
}
Or just use the buy_now action like this:
/index.php?main_page=index&action=buy_now&products_id=11
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.