close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cart, Search, LogIn all on Home Page

Thread began 5/20/2013 8:18 am by deanmale2001272549 | Last modified 6/07/2013 1:29 pm by Jason Byrnes | 4138 views | 21 replies |

deanmale2001272549

Cart, Search, LogIn all on Home Page

I have a few working recordsets on Home Page. Including LogIn and Products Grid. As I add Cart (cart.php), I do not get a visual of cart contents. Just the 'cart is empty' message. I actually had it posting contents to the 'cart' on home page over the weekend, but functionally dropped somehow without touching code. Everything works if I go through the 'product details', 'add to cart', 'checkout', etc. On separate pages. But with all combined on home page, 'cart is empty' message only.

http://funlifefoods.com/products_detail.php?ProductID=1
http://funlifefoods.com/cart.php
http://www.funlifefoods.com/index_5.php

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is domain switching.

cart contents are stored i a session.

Sessions are based on the Browsing Cookie.

Cookies are based on the domain in the address bar.

if you visit:
funlifefoods.com

you start one browsing session

www.funlifefoods.com
is a separate browsing session, it cannot see the cart content form the non www address.


you are going to the non www address to add items:
http://funlifefoods.com/products_detail.php?ProductID=1

then trying to see the items using the www address:
http://www.funlifefoods.com/index_5.php

if you change that to the non www address you will see the items:
http://funlifefoods.com/index_5.php


you can use an htaccess rule to force all traffic to use the www address, see this tutorial:
http://www.webassist.com/community/tutorials/view_tutorial.php?tid=178

Sign in to reply to this post

deanmale2001272549

Disables 'Checkout'

Thanks for speedy reply Jason! I used Ray's php method to strip out www. so Cart and Home Page have same address. Worked great, (although I've got that include on the top of Head tag on Home Page and at the bottom of Head tag for cart.php and product_details.php.) Otherwise, I was getting "Headers already sent" error message.

Any reason why that would keep one from advancing to checkout.php form? Checkout button doesn't send one to checkout form, now? (Just reloads page [It looks like?]) All the other buttons work. (Continue Shopping, Clear Cart, Update Cart)

Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

are you using include() to add the other pages?

That wont work as it adds php code to the body of the page which causes the headers already sent error.

instead you should use framework builder to add the other pages as plugins. framework builder is a part of Design Extender and Data Bridge.

Sign in to reply to this post

deanmale2001272549

No, I only added my www_exclude.php (To strip www. from pages) via 'include', as per tutorial. Should I use Framework builder to add checkout.php to Home Page?

Sign in to reply to this post

Jason ByrnesWebAssist

i dont follow.

send a copy of the checkout page please.

Sign in to reply to this post

deanmale2001272549

see attached.

Attached Files
cart.php
checkout.php
index_5.php
Sign in to reply to this post

Jason ByrnesWebAssist

on the checkout page move the following code to line 5:
<?php
$eCart1->GetContent();
?>

Sign in to reply to this post

deanmale2001272549

Moving code up to line 5 did not make the Cart's 'checkout' button work on the home page. No error messages. Just did not work. Is there a plan B? Thanks for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

The power store index page will have the code for showing the featured product, you should use the index page from power store.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...