Jump to content

How do I make a standalone 'Add to Cart' button?


Recommended Posts

Hi,

I need to make a standalone 'add to cart' button so I'm trying to figure out how the Ajax Cart system works.

Looking at an existing 'add to cart button' from the featured items:

Add to cart



What would I have to do manually to produce my own button? Simply reusing the above causes an error. Also, Is the rel attribute used to trigger the add to cart animation?

Hope someone can help.

Thank you

Roberto

Link to comment
Share on other sites

Its surprising how few responses get posted to things like this. Its not that there aren't members with the answer, because there are an abundance of skilled users. Not sure what it is, but its very unlike some of their competitors forums. I think they'd be surprised how much the willingness to contribute would increase if they just participated a little more in the english speaking forums.

My euro's worth.

--DB

Link to comment
Share on other sites

DB,

I was actually thinking along similar lines. I've visited so many forums in the past that are so responsive it feels like an online chat. The result is that you find yourself increasingly devoted to the community and in turn encourages you to help others.

I'm guessing the senior members have currently got their heads buried in code to get the next stable release out. Either that or I smell. ;)

I still need to figure the above out. A helpful pointer in the right direction would really help if anybody has one?

Thanks in advance

Roberto

Link to comment
Share on other sites

for me personally, it's a lack of time, I'm currently working on to many small modules and payment gateways to make presta more flexible to have time to write an article on how to create a buy button.. but I can point you to the right direction :P

Ajax script for animation is in blockcart, check the blockcart module (ajax-cart.js, blockcart-json.tpl and blockcart.php) and also the product-listing.tpl, category.php file and you should be able to figure it out ;)

Link to comment
Share on other sites

Apprentice does indeed have a point.

I also have found responses slow, but at the same time I do understand everyone is busy. However there are times when a question would be quick to answer, yet can still go unanswered for a couple or days or more. I am not sure why this is.

Once I am up to speed I will certainly contribute where I can

Link to comment
Share on other sites

I'd like to make another comment here, this time regarding the community members that receive help. Everyone seems to be afraid to add to a wiki because they don't want to be embarrassed by their contribution being inaccurate or poorly written; rarely it seems are we reluctant to post because of the time involved.

IMHO, if you receive a solution that both works and doesn't appear to be a complete kludge, you need to give back by posting to the wiki. It is a better use of developer time to make (hopefully) minor corrections to the wiki than to cover all the many details from scratch themselves. They help, we write, they edit.

--DB

Link to comment
Share on other sites

×
×
  • Create New...