Guest Posted August 16, 2003 Share Posted August 16, 2003 Forgot to mention that I also do not have the product_listing_col contribution so that can't be it either. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 19, 2003 Share Posted August 19, 2003 Is anyone going to help me? Quote Link to comment Share on other sites More sharing options...
Guest Posted September 14, 2003 Share Posted September 14, 2003 Yeah, the problem persists: This mod works fine on MS1 v2.2, but not on MS2 v.2.2 >> the problem is: buy now buttons on Featured Products and Product Listing Pages do not add anything to the shopping cart. Any help will be most appreciated. Rgds OTH Quote Link to comment Share on other sites More sharing options...
Guest Posted September 15, 2003 Share Posted September 15, 2003 I dont think you need them contributions on MS2, the admin side of MS2 now offers its own anti-SID killer for spiders... maybe someone could correct this confussion. Quote Link to comment Share on other sites More sharing options...
PrettyPink Posted September 16, 2003 Share Posted September 16, 2003 standard SID killer with MS2 isn't much good I guess .. doesn't it rely on a pre defined set of IP addresses? And who knows how often the IPs of spiders would change. By the time you add IPs, the damage would have already been done. Just my 2c Yes, some official announcement must follow here. PP Quote Link to comment Share on other sites More sharing options...
stretchr Posted November 1, 2003 Share Posted November 1, 2003 standard SID killer with MS2 isn't much good I guess .. doesn't it rely on a pre defined set of IP addresses? And who knows how often the IPs of spiders would change. By the time you add IPs, the damage would have already been done.PP What's the answer regarding this mod? Should it be installed with MS2 and, if so, has anyone successfully modified the contribution to work with MS2? Thanks, Stretchr Quote "It's a small world... But I wouldn't want to paint it!" Stephen Wright Link to comment Share on other sites More sharing options...
pedro Posted December 13, 2003 Share Posted December 13, 2003 I'm at this point in my installation. Is there an anwer? I this required for MS2? Thanks Quote Link to comment Share on other sites More sharing options...
nyderrn Posted April 17, 2004 Share Posted April 17, 2004 I have master products installed and it changes the code in product_listing.php instead of case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; I have case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; //Master Products if ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') { $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } elseif ($listing['products_master'] != '0') { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_master']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } //Master Products EOF break; Can all three of these statments be transformed without it breaking? If so, I can try to modify it or if someone could help me with the code I would appreciate it. :blink: I don't have the knowledge, but I can normally make things work given enough time. If someone could help me, thanks or at least tell me if it can be done. Tim Quote Link to comment Share on other sites More sharing options...
nyderrn Posted April 17, 2004 Share Posted April 17, 2004 You know what, please no one waste their energy on this one yet. I seem to have another problem. My buy now buttons go to the shopping cart without adding the products. If I can't figure out how to solve this, I won't use the buy now buttons at all even though I like the idea. Thanks anyway Tim Quote Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2004 Share Posted April 18, 2004 I have master products installed and it changes the code in product_listing.php instead of case 'PRODUCT_LIST_BUY_NOW': ? ? ? ? ? ?$lc_align = 'center'; ? ? ? ? ? ?$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; ? ? ? ? ? ?break; I have case 'PRODUCT_LIST_BUY_NOW': ? ? ? ? ? ?$lc_align = 'center'; //Master Products ? ? ? ? ? ? ? ? ? ? ? ?if ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') { ? ? ? ? ? ?$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; ? ? ? ?} elseif ($listing['products_master'] != '0') { ? ? ? ? ? ?$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_master']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; ? ? ? ? ? ? ?} else { ? ? ? ? ? ?$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; ? ? ? ?} //Master Products EOF ? ? ? ? ? ? ? ? ? ?break; Can all three of these statments be transformed without it breaking? If so, I can try to modify it or if someone could help me with the code I would appreciate it. :blink: I don't have the knowledge, but I can normally make things work given enough time. If someone could help me, thanks or at least tell me if it can be done. Tim Download the latest release of Master Products - the Add to Cart is not a link Matti Quote Link to comment Share on other sites More sharing options...
nyderrn Posted April 18, 2004 Share Posted April 18, 2004 Thanks Matti Everything is working fine now. It seems the simplest solution is the best sometimes. :D Tim Quote Link to comment Share on other sites More sharing options...
taz1 Posted May 15, 2004 Share Posted May 15, 2004 best way in this case: change: if (isset($HTTP_GET_VARS['products_id'])) { < if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { < tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); < } else { < $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); to --- > case 'buy_now' : if (isset($HTTP_POST_VARS['products_id'])) { > if (tep_has_product_attributes($HTTP_POST_VARS['products_id'])) { > tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_POST_VARS['products_id'])); > } else { > $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity($HTTP_POST_VARS['products_id'])+1); Quote Link to comment Share on other sites More sharing options...
strictlypc Posted June 10, 2006 Share Posted June 10, 2006 Hi All, Please help me with this. I am completely stumped: Code #1 <tr><td colspan=3 align=center><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image_button('small_view.gif', IMAGE_BUTTON_BUY_NOW) . '</a>?<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr> Code #2 <tr><td colspan=2 align=center><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image_button('small_view.gif', IMAGE_BUTTON_BUY_NOW) . '</a>?<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr> I need to convert both of the above codes to a form instead of a link. Please help me, I have been stumped for like 2 days trying to figure this out. Appreciate all help and kindness, StrictlyPC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.