By jamesialford on
Hi all, I would like to create a "buy now" button in eds classified page. Clicking on the "Buy Now" button will send an email tothe seller and remove the item from the catalog.
I do not know even where to start. I am thinking this will need to be done in the theme.
I do know I will need to make a CA to have the classified removed from the catalog.
Can someone point me in the right direction?
James
Comments
_
I would think you could do this with the http://drupal.org/project/rules and http://drupal.org/project/flag modules.
rules
Thanks for the quick responce WorldFallz. After some reading I do beleve that rules would be a good module to use.
I still need someone to help me with getting the link in the classified add.
James
Any thoughts
Does anyone have any thoughts on how to add a link to my eds-classified content?
James
_
Your op doesn't mention a link-- what sort of link do you mean?
Wrong termnology
Sorry WorldFallz, I think link is the incorrect termonology for it. I think the correct term is a CA. I would like to have a button that will soot off an email to the seller, I am thinking Privite Message Module. I would also like it to send an email to my sales email address. That is two email address, one is the user and the other is my sales email. After the Button is clicked it will dirrect the user to a "thank you" I have created. I think this is why I was calling it a link.
Do you have any thoughts?
James
_
Sorry, maybe I'm being dense, but I don't know what "CA" is either, lol.
In any case, I think I get what you're after. You can setup rules to automatically send emails upon creation of a node as well as redirect to a thank you page-- so you don't really need a button per say (the submit button on the node is acting like the button you're after). But if you really really want a button for this, you can use the http://drupal.org/project/flag module to put a link on the node (which can be styled to look like a button if desired) that will also kick off the rules for emails and redirects.
Here is how I want things to work
Hi, thank you for the help.
A user (user 1) will log on and add items for sale in the classifieds. This is a node the is created at node/add/ed-classified. User1 will add a picture and the price for the item. Now a node is created and is in the Taxonomy catalog.
When a different user (user2) logs on and browes the classifieds and finds the product that user1 posted. User2 will need to click something on the node that will send out an email (Privite Message) to user1 and my sales email address, to inform everyone that user2 wants to buy this item from user1.
I have read that ed-classified is not fully themeable http://drupal.org/node/529524
I am going to reach out to the maintainer of ed-classified for a little help as well.
I have created some images of how I would like it.
This is how it is now. http://jamesalford.com/nodenow.gif
This is how I would like it. http://jamesalford.com/nodethen.gif
James
node-ed_classified.tpl.php in your theme directory
@James - Revisit #529524: Make Classified Ad module fully themable, I think what you're after is now described there. You should just be able to slip your buttons/links into some HTML snippet injected in node-ed_classified.tpl.php...
Cheers,
Miles