Jump to content

Can Buy Button ONLY add to basket?


defreeze

Recommended Posts

Hi Cubecart,

I've set up a fabulous shop with cubecart for a very fussy client. We are in the home straight however I can't seem to find an answer to the Buy Button issue.

The Buy Button takes you to the product information even if there aren't product options to choose from. I've installed estelle's "redirect to basket after adding a product" but the client is not happy with this solution.

Can the Buy button be set up to ONLY add to the basket without redirecting to Basket page or product information page?

I'm running 3.0.13 with a heavily mod-ed killer skin.

Many Thanks

Patricia

Link to comment
Share on other sites

  • 4 weeks later...
Guest estelle

This is a problem with the latest version of CubeCart.

Quickest fix is to locate this section within includes/boxes/shoppingCart.inc.php:

	// prevents refresh adding extras to the basket

	header("Location: index.php?act=viewProd&productId=".$_POST['add']);

	exit;




And comment it out, i.e:




	// start mod: Stop Buy button redirecting to product page, by Estelle

	/*

	// prevents refresh adding extras to the basket

	header("Location: index.php?act=viewProd&productId=".$_POST['add']);

	exit;

	*/

	// end mod: Stop Buy button redirecting to product page, by Estelle

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.

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