Market lets you sell products online using the Wordpress platform.

You must be logged in to post Login

Search Forums:


 






Add to cart and affiliate links

UserPost

9:52 am
December 8, 2009


cmoreton

Member

posts 9

Hi,

I am using this theme as i believed that I can use both 'add to cart' and 'affiliate links', however after buying this theme it seems that they are not all ready installed. I have been looking through the forum for topics related to this subject.

Please could you give me the php code to place into the single.php so that the buttons work, plus instructions on how to vary between the two buttons for different products.

I have followed another's script shown within the forum and added a 'buy' custom field, nothing has happened!

I do believe that this code should be provided when purchasing the theme as described on your features!

So please can you help all of your customers who need this.

manyt thanks in advance

2:20 pm
December 8, 2009


Market Admin

Admin

posts 2765

Currently, I can't offer you any custom code to offer both "buy now" and "add to cart" buttons features.  It's got to be one or the other.


The only way for you to offter both affiliate products and your own products is to enter "affiliate products" a little differently than you enter regular products that you are selling yourself.

Here's what you'd do:

1. Set your store up to use the "Add to Cart" functionality.

2. Enter products you sell yourself regularly.

3. For affiliate products, you'll need to leave the "Price" field blank, and put the product price into the beginning of the Description field.  (This will prevent the "Add to Cart" button from showing)

4. Then, you would enter the affiliate link and button (or link text) into the description field after your description text. 

(Or if you'd rather, you can enter the affiliate link code and hypertext into the "Additional Details" field.  If you do that however, you'll probably want to edit the Market Theme language file (mkt_language.php), to change the words "Additional Details" to something else, or lave blank altogether.)


This should give you the result you're after.

6:49 pm
December 8, 2009


cmoreton

Member

posts 9

thank you very much indeed. This is very straightforward - phew!


9:18 am
January 5, 2010


cmoreton

Member

posts 9

Hi again,

I have managed to do as you suggested, however when clicking on the storefront it says that the item is sold out...

Also when viewing the list of products the buy it now product has no information to the right.

I would like it to say buy it now.

I tried to add this to where you can add the price but when I did this both the buy it now and add to cart buttons appeared.


12:28 pm
January 5, 2010


Market Admin

Admin

posts 2765

It would make it much easier for me to follow what's not functioning by having a link to your site.  Then I can see first hand what's happening.

12:48 pm
January 5, 2010


cmoreton

Member

posts 9

3:11 pm
January 6, 2010


Market Admin

Admin

posts 2765

I think that's because you don't have a price entered for that product.

You can change the text of "sold out" by changing it in the "mkt_language.php" file.  (I think there are two places to change)

You can make it say something differeing if you like, or just change it to remove the words so it shows nothing.


4:39 pm
January 7, 2010


cmoreton

Member

posts 9

Many thanks!