Jump to content

barrieeksteen1

New Members
  • Posts

    1
  • Joined

  • Last visited

barrieeksteen1's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hope someone can help I used 'metro-webdesign.info' to create my desired site. I am busy implementing a shopping cart which I am busy developing in php. When you click on Add to Cart, it sees and excecutes cart_update.php but never returns back to the shopping list, which is index.php. I hope you understand...please help while($obj = $results->fetch_object()) { echo '<div class="product">'; echo '<form method="post" action="http://localhost/functions/#!/url=cart_update.php">'; echo '<div class="product-thumb"><img src="img/products/'.$obj->product_img_name.'" width="100px"></div>'; echo '<div class="product-content"><h3>'.$obj->product_name.'</h3>'; echo '<div class="product-desc">'.$obj->product_desc.'</div>'; echo '<div class="product-info">'; echo 'Price '.$currency.$obj->price.' | '; echo 'Qty <input type="text" name="product_qty" value="1" size="3" />'; echo '<button class="add_to_cart">Add To Cart</button>'; echo '</div></div>'; echo '<input type="hidden" name="product_code" value="'.$obj->product_code.'" />'; echo '<input type="hidden" name="type" value="add" />'; echo '<input type="hidden" name="return_url" value="'.$current_url.'" />'; echo '</form>'; echo '</div>'; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.