Simple Commerce Module FAIL
Posted: 03 September 2008 11:23 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  100
Joined  07-28-2008

Hi there,

I’m fairly new to EE and I’m having issues implementing the SCM. I have set up sandbox paypals, installed the module and created products in a weblog and added them to the store.  I believe I’ve done all the right steps to tie them all together, however when I implement the store code, it doesn’t pull anything. I pulled a sample code from the site and implemented it and maybe there is something in there i need to change to make it work.

{exp:simple_commerce:purchase entry_id=”{entry_id}” success=”{site_url}/index.php/store/” cancel=”{site_url}/index.php/store/”}

{title}
<p><strong>{item_regular_price}</strong></p>

<p><a >Buy Now</a></p>
<p><a >Add to Cart</a></p>
<p><a >View Cart</a></p>

{/exp:simple_commerce:purchase} 

My weblog name is “store” and I have created separate fields for that weblog to include images and a description. If I pull a normal weblog entry the info pops up so I know there’s something wrong with my store code.

Also, is there a way to produce a main index page of all the products and then link to individual product pages? I assume the individual product pages would somehow use the store code as well as that is where they would be purchasing from, not the main index page. If it’s added into the store module, does it still need to pull the store weblog or do I need individual product weblogs to create the individual product pages?

Please help! Massive FAIL!

[Mod Edit: Moved to the Technical Support forum]

Profile
 
 
Posted: 03 September 2008 12:02 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6610
Joined  04-15-2006

Just a very quick question but do you have the code shown above located within your weblog tag or outside of it?

This tag is designed to go inside a weblog tag so something like this would be correct :

{exp:weblog:entries weblog="store" disable="member_data|trackbacks|pagination|categories|category_fields"}

{exp
:simple_commerce:purchase entry_id="{entry_id}" success="{site_url}/index.php/store/" cancel="{site_url}/index.php/store/"}

{title}
<p><strong>{item_regular_price}</strong></p>

<
p><a >Buy Now</a></p>
<
p><a >Add to Cart</a></p>
<
p><a >View Cart</a></p>

{/exp:simple_commerce:purchase}

{
/exp:weblog:entries}

If it’s not that then what exactly does happen?

Perhaps if we can get the Simple Commerce Module prices showing for you first and then we can deal with the rest of what you need or else it may take longer than it needs to.

Hope that helps.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 03 September 2008 12:15 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  100
Joined  07-28-2008

Awesome! That’s what i was missing. I didn’t realize it had to be inside the weblog, I never thought to try that! Thanks.

Perhaps you can help out with the second part of my question:

Is there a way to produce a main index page of all the products and then link to individual product pages? I assume the individual product pages would somehow use the store code as well as that is where they would be purchasing from, not the main index page. If it’s added into the store module, does it still need to pull the store weblog or do I need individual product weblogs to create the individual product pages?

Thank you again!

Profile
 
 
Posted: 03 September 2008 12:21 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6610
Joined  04-15-2006

Hmm seems this post got moved to Tech Support. I could have sworn it was in the Modules section before?

To do what you are after would just be code used in the same way that you would normally create a weblog link to a single entry page.

So on your main index page that lists all the items you would do this :

{exp:weblog:entries weblog="store"}

{exp
:simple_commerce:purchase entry_id="{entry_id}" success="{site_url}/index.php/store/" cancel="{site_url}/index.php/store/"}
<h2>{title}</h2>
<
p><strong>{item_regular_price}</strong></p>
<
p><a >Buy Now</a></p>
<
p><a >Add to Cart</a></p>
<
p><a >View Cart</a></p>
{/exp:simple_commerce:purchase}

<p><a href="{url_title_path='store/details'}" title="View Details">View details&hellip;</a></p>

{/exp:weblog:entries}

This is assuming that you have a template group called store. Yours will probably be called something else so just exchange that in the code above. You will then need the details template which would then have this code in it.


{exp:weblog:entries weblog="store" limit="1"}

{exp
:simple_commerce:purchase entry_id="{entry_id}" success="{site_url}/index.php/store/" cancel="{site_url}/index.php/store/"}
<h2>{title}</h2>
<
p><strong>{item_regular_price}</strong></p>
<
p><a >Buy Now</a></p>
<
p><a >Add to Cart</a></p>
<
p><a >View Cart</a></p>
{/exp:simple_commerce:purchase}

{
/exp:weblog:entries}

This is pretty much the same code as above but now as you have been sent to a single entry page then the weblog tag will just return the information for that one entry.

Hope that helps.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 03 September 2008 12:54 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  100
Joined  07-28-2008

Haha, yeah it got moved. I thought it got deleted, but then I found it!

That was such a massive help! Now all I’ll need to do is style the sections up. Thank you so much. I do however have a couple other questions if you wouldn’t mind. Is there a way to organize your weblog entries in a particular order? So if I want one product moved around to a seperate area it will work? And also, the title tag has become a little tricky as well. Before I had it as:

<title>{site_name} | {embed:my_page_title}</title>

But once you start getting more in depth it loses its path, like with the individual products page it should say:

Site | Store | Product A

Any thoughts on that?

Thanks again!

Profile
 
 
Posted: 03 September 2008 12:58 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

Welcome to the EE forums, Amanda.

Looks like Mark was able to help you with your issue with the Simple Commerce Module.

Thanks for the assist, Mark.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65085 Total Logged-in Users: 37
Total Topics: 82223 Total Anonymous Users: 21
Total Replies: 441915 Total Guests: 222
Total Posts: 524138    
Members ( View Memberlist )
Newest Members:  BombermanhaimtuagocsadamVeNeaDoRHildegaardhrtrulzUNFORGIVEN IIIEmmanuelYanYanTomsB