Market lets you sell products online using the Wordpress platform.

You must be logged in to post Login

Search Forums:


 






I only want to sell affiliate products...

UserPost

1:18 pm
October 13, 2009


Market Admin

Admin

posts 2765

Thanks, that helps.

In your source code, I see this:


It looks like you've entered the linking HTML code in your custom field by mistake.  You only need to enter the link location URL and tracking variables. 

That's why you've got too many "<a href="" and " >" segments showing up. 


Your source code SHOULD look like this when it's done:


Ok?


3:08 pm
October 13, 2009


EuniceC

Member

posts 20

Post edited 3:24 pm - October 13, 2009 by EuniceC
Post edited 3:30 pm - October 13, 2009 by EuniceC


Thanks, I'm still a little confused. Do I fix this in the single.php part or in my custom field?

Because my custom field looks fine. And I can't find it in the single.php file. I noticed that when I click the "buy Now" link to see if it takes me to the order page on my affiliate site, it stays on my blog and goes to a page that says "sorry but you are looking for something that isn't here."

There's also some weird characters under my "Buy Now" button. And the url on the Adobe Fireworks page has a < href= after it in the address bar. I see the problem is in the "Buy Now" code. All I did was click a button to get it to use the Buy Now button. I don't know where to go to fix it.

I know this is a real mess. 

Thanks for your help and patience.

Advice and tips for internet marketing newbies and small businesses online at http://www.simple-internet-strategies.com

4:08 pm
October 13, 2009


EuniceC

Member

posts 20

I've tried to figure this out on my own but can't. In fact, I think I've made it worse. When I click on the link to the product page, 

under the Buy Now button, there's this: >=                      with a Sold Out button underneaath. 

I've highlighted where I think the problem is in my single.php file but I'm not sure.


<!--
      <input type="image" src="<?php bloginfo('template_directory'); ?>/imgs/bn.gif" class="pp" border="0" name="submit" alt="<?php echo mkt_THEME_SINGLE_BUTTON_BUYNOW; ?>">
-->
      <a href="<?php echo $affiliateURL; ?>"><img src="<?php bloginfo('template_directory'); ?>/imgs/bn.gif" class="pp" border="0" alt="<?php echo mkt_THEME_SINGLE_BUTTON_BUYNOW; ?>"></a>

<img src="<?php bloginfo('template_directory'); ?>/imgs/bn-out.gif" alt="<?php echo mkt_THEME_SINGLE_SOLDOUT; ?>">
<?php } ?>

     
    </form>
    <!--End BuyNow Code-->


I'm afraid to mess around with this anymore b/c I'll probably make it worse.  


Thanks,

Advice and tips for internet marketing newbies and small businesses online at http://www.simple-internet-strategies.com

11:56 am
October 14, 2009


EuniceC

Member

posts 20

Can anyone help me out with this?

Thanks,

Advice and tips for internet marketing newbies and small businesses online at http://www.simple-internet-strategies.com

4:21 pm
October 14, 2009


Market Admin

Admin

posts 2765

Post edited 4:23 pm - October 14, 2009 by Market Admin
Post edited 4:24 pm - October 14, 2009 by Market Admin


The problem appears to be the affiliate link data that's contained in your custom field.  I believe all you need to do is edit your custom field entry, so that instead of showing:

-- it should only show this:


See how the "<a href="" and ""> isn't there?


So, go to your test product (Adobe fireworks) in the Wordpress administration area (edit post), and change the custom field entry you have on that product to the second link above.  The one without the "<a href" stuff. 

Have the custom field entry begin with "http://" and end with "subid=0".


I think the random code you have showing up will go away too, because this extra code that's in there now is a big reason that there are issues.

Let me know how this works. 

7:24 am
October 15, 2009


Su

Member

posts 33

I thought I should just start over so I took out my changes and the links for the moment. My first question is, do you - or anyone out there - have a code modification that's working for the current version so I can sell affiliate products and my own products? The one I was trying to use from Ingrusmedia was for version 3.00, I 'm guessing that's why I ran into problems. He/she had worked out a way to have the shopping cart work for own products, and a buy now link for the affilliate products.

11:11 am
October 15, 2009


EuniceC

Member

posts 20

Thanks, it got rid of the random code but I still have that "not sold out"  symbol. Can you help me change this back to what it was originally? I think that will finally clear it all up.


Advice and tips for internet marketing newbies and small businesses online at http://www.simple-internet-strategies.com

1:25 pm
October 15, 2009


Market Admin

Admin

posts 2765

EuniceC -- This graphic is being displayed because in your "single.php" file there is a test that checks whether or not an item is out of stock. 

For your version (Market 3.52), this feature hasn't been enabled yet, so my guess is that you may have edited out the "out of stock" test.

Open your "single.php" file for editing.


Right after the affiliate code area that you inserted, look for the line:

<img src="<?php bloginfo('template_directory'); ?>/imgs/bn-out.gif" alt="<?php echo mkt_THEME_SINGLE_SOLDOUT; ?>">

The quickest solution is to just comment out this line by changing it to this:

<!--
<img src="<?php bloginfo('template_directory'); ?>/imgs/bn-out.gif" alt="<?php echo mkt_THEME_SINGLE_SOLDOUT; ?>">
-->

Save the file, and I think that should do it.

1:31 pm
October 15, 2009


Market Admin

Admin

posts 2765

Su  -- Currently, I don't have a way to offer you that'll let you sell both physical items and affiliate items at the same time, other than you just entering the affiliate button and link into your specific product's "description" box. 

If you did that, then you'd probably want to alter the code so that the regular "buy" button doesn't show up.  To do that, you'd need to insert some sort of "test" so the page could make a decision whether or not to show the button.  I don't have the actual code to offer you, otherwise it would be in the "How to" forum section.

In the future, we'll hoping to add a new field in the product entry form that'll allow you to put in an affiliate link for the product.  The webpage would then display a button with that link instead of the shopping cart link.  This is a few months out though.

3:56 pm
October 15, 2009


EuniceC

Member

posts 20

That did it! Thanks so much, I really appreciate your help.

Advice and tips for internet marketing newbies and small businesses online at http://www.simple-internet-strategies.com

5:03 pm
October 15, 2009


Market Admin

Admin

posts 2765

You're welcome.


10:18 am
May 3, 2010


sanssecret

At my computer

Member

posts 3

Post edited 12:42 pm - May 3, 2010 by Market Admin


Hi, I've followed these steps but it's not working for me.

When I click the 'buy now' button, it just refreshes the post. Hovering over the link shows it links to the post, not to the affiliate url. I'm pasting in my entire single.php file so can someone please tell me what I'm doing wrong? Admittedly I'm not techie, but I'm usually pretty good at copying and pasting, lol.

Thanks in advance.


San

12:43 pm
May 3, 2010


Market Admin

Admin

posts 2765

Post edited 12:44 pm - May 3, 2010 by Market Admin


Did you setup a value for the affiliateURL custom field?

That needs to be done through the "add Product" form on the administrative side.

It sounds to me, like you don't have a value set -- so it's got no place to go.

Read up on post# 3 of this thread.  Make sure you set your affiliate URL link value in the Admin area.


It also might be easier for people to help if you include a link to your site's page.

2:17 pm
May 3, 2010


sanssecret

At my computer

Member

posts 3

Hi

yes, i set everything up and put in the affiliate url, but still nothing. The site is on a subdomain just while I'm testing the theme. You can view it at http://www.sanssecret.com/Mark.....uperstore/

Thanks.

San

12:56 pm
May 4, 2010


Market Admin

Admin

posts 2765

When I visit your website's product details page, in your source code, I see this:

<!--

<input type="image" src="http://www.sanssecret.com/Marketing-Superstore/wp-content/themes/mk3/imgs/bn.gif" class="pp" border="0" name="submit" alt="Buy Now">

-->

<a href=""><img src="http://www.sanssecret.com/Marketing-Superstore/wp-content/themes/mk3/imgs/bn.gif" class="pp" border="0" alt="Buy Now"></a>

</form>


<!--End BuyNow Code-->


In the <a href="" area, can you see how there is no link there? -- (just a double quote)


This means that there is no value set for your variable "$affiliateURL" variable.


If at the top of "single.php" if you have this line entered:

$affiliateURL = get_post_meta($post->ID, 'aff_URL', $single = true); // get affiliate URL


then, it means that "aff_URL" does not contain any data for that product post.


If that's the case, then it means that you have not set the value for that custom field properly.


If it had a value in it correctly, then it would populate the "$affiliateURL" just fine.


Are you 100% sure that you're entering the custom field variable properly on your "Add Product" page?


It's under the "Custom Fields" box.


Here are the step by step instructions for entering a custom field for newer versions of Wordpress


1. Click on the "Enter New" link underneath the "Name" dropdown box. This will turn the dropdown box into a regular field.

2. Enter the text "aff_URL" into the "Name" box. (no quotes)

3. Enter the full URL of your product's affiliate link.

(eg. " http://www.affiliatewebsite.co.....od_id=6412 ")

4. Click the "Add Custom Field" button.


That should do it.

2:07 pm
May 4, 2010


sanssecret

At my computer

Member

posts 3

Sometimes I am so thick I even amaze myself. Embarassed

Sorry, I had aff_url instead of aff_URL

It's working a treat now, thanks.

This is why I'd never be any good as a programmer, lol.


Thanks again.

San

12:13 pm
May 5, 2010


Market Admin

Admin

posts 2765

Yup, I hate it when it turns out to be a minor error like that.  So hard to catch.

Glad you're up and going.