Making A PayPal Shopping Cart

coming soon.

46 Responses to Making A PayPal Shopping Cart

  1. Martin says:

    Just wondering about setting up a store… I’ve got 45 items in my catablog, with pricing and item codes. I have a Paypal account, but when I load the paypal.htm template, a button does not appear on each item. Am I doing something wrong?

    Thanks for your help– I really love Catablog, it addresses my needs nicely.


    • Zach says:

      Are you sure your template uses the %BUY-NOW-BUTTON% token? Are you sure you catalog items have prices greater than zero. Also are you sure you loaded the Paypal template and then saved your options, not just loaded it. Lastly, do you have any CSS customizations that might affect the height of your catalog item rows.

      BTW, the gallery template does not use the buy now button by default.

      Also if you still need help, please send a link to an example page.

  2. alx359 says:

    Hi Zach,
    First post. Nice job with CataBlog. I like it! ๐Ÿ™‚

    A question:

    – How is expected one to change the generated page layout for a CataBlog entry when Item Price is >0?

    A suggestion:

    The ‘Edit This Page’ link at the bottom of a generated page lands at

    But the admin panel ‘Edit Catablog Entry’ link at the top navbar lands at:

    This is a bit confusing IMO, not to say the former link has lot less options to manage even than an ordinary page (for e.g. no themes templates). Would suggest at first both links to be Catablog entries.


    • Zach says:

      Hi Alex,

      There is no real way to change the “layout” of an item with a price of zero, but you can use the %CATEGORY-SLUG% token to set the CSS classes of the wrapping .catablog-row element. This does not “create” or “not create” data, but would let you change the appearance of specific catalog items.

      The “edit this item” link at the bottom of CataBlog pages is part of your theme, and the theme should be modified to work with CataBlog. This is why the new admin bar is far superior IMHO and developers should stop adding those links into their themes. I will look into a way of fixing this in the future, but am unsure if I can…

  3. alx359 says:

    Another suggestion:
    %PRICE% to not be shown, same as %BUY-NOW-BUTTON% (and any other cart related params in that matter), if Item price =0. That way I can activate shopping abilities on a per product basis as is now, but still using the same global template.
    Also, think a %CURRENCY-CODE% should be defined too, for displaying purposes. Also rendered only when Item price >0.

  4. Nacho says:

    Hi. Firstly, congratulations, catablog is a very good solution for mini-store on WordPress. I have a little problem, will try to explain it (sorry for my english):

    I have edited Paypal template with currency_code & shipment cost:

    But, the problem is: on my store i have 4 products. If i add one product to cart, appears product cost + shipment, all right… but, if i add more products, shipment cost is multiplied. It means: 3 products, 3 shipment cost (11.80 x 3)… and i need only 1 shipment cost for 1, 3 or 20 products….


    • Van says:

      Were you able to find a solution to this Nacho? I’m currently having the same issue.

      • Zach says:

        Does PayPal have any configurations to only use the first shipping cost? I know you may add shipping costs to a PayPal buy button, but I don’t know if you can do what you want without a shopping cart. Currently CataBlog does not have a shopping cart feature, but you can integrate it with other purchasing solutions by modifying the store template. Good luck.

  5. JornB says:

    Hi, Zach!

    Your’re still doing a great job with this plugin… and to make it even better:

    How about adding the option to use a cart system without PayPal, so instead of using PayPal you have the option to let the visitor send the cart to a specific e-mail address?

    I think this would add a whole new depth of usability to CataBlog

  6. Shonie says:

    Well as you can see we are still in the set up mode. ;-D But I just wanted to comment on what JornB said. The person I am setting this up for wants the pricing listed (and I guess right now I will just put it in the descriptions), but it would be nice to have the ability to set up a store front, without a payment option, as she doesn’t want just have them sending paypals. She needs to be able to confer with the client before she makes the product.

    Now that I am figuring it all out, this is a wonderful application!

    • Zach says:


      You can use the price value in your template code, while it won’t remove the currency code if the value is zero, it will let you use the price field instead of manually putting the price into the description. Just use the %PRICE% token inside your main template instead of in the store template. Hope that made sense….

  7. Shonie says:

    Thanks, Zach. I will check it out ๐Ÿ™‚

  8. david says:

    Hi Zach, I’m new with using catablog, and I need to use the shoping cart. Is there any example of configuration?


    • Zach says:

      Go to the CataBlog Options Admin Panel and click the Store Tab. There you can setup any HTML based button. You may load the PayPal template to see an example of how the HTML code is mixed with CataBlog tokens.

      After you set the Store Template you may use the %BUY-NOW-BUTTON% token inside your CataBlog Template code.

  9. FBgraphiklab says:

    It’s very easy to create an “add to cart” button in Catablog.
    Just use this code, and change it to your default language (french here) :

  10. FBgraphiklab says:

    Itโ€™s very easy to create an โ€œadd to cartโ€ button in Catablog.
    Just use this code, and change it to your default language (french here) :


  11. Vero says:

    Hi Zach,
    First of all, thanks for the most wonderful plugin ever made ๐Ÿ˜‰
    Second, I’m going absolutely mental with a very silly thing…
    I added my Buy Now button on my lightbox images, everything working lovely BUT the button has a black background that I can’t get rid off and it’s driving me nuts… I first linked to an image from an URL on the paypal template, then converted image to png with transparency and uploaded to WP library and linked from there, nothing works… Tried to look inside CSS but I’m useless with that kind of stuff… Please help! Thanks a lot…

    • Vero says:

      Sorry, I forgot to mention that only the 2 first posters have the Buy Now button at the moment. Bye!

    • Zach says:

      You’re theme or another plugin probably has a CSS rule that makes all your post’s image backgrounds black. Try overriding this for images with the .catablog-image class. Good luck.

      • Vero says:

        Hi Zach, thanks for your reply.
        I tried adding a custom style on my theme for the .catablog-image class but it didn’t work. It changes the style of the catablog gallery but not the button inside the lightbox. I’m lost…
        The button is an image in the media library, I put the link to that image in the template for the paypal store… Where am I going wrong? I can’t think of anywhere else where I set up black bgnd for images… Pretty please?

        • Zach says:

          Are you familiar with Firebug or similar web Development tools? Look it up on Google and see how easy it is to modify your CSS directly on the page. Now for some advice:

          the .catablog-image class is most likely not going to change your buy now button. Look at the code you put in the template for the PayPal store, that is were you want to specify your background. If the <img /> tag linking to the image you upload doesn’t have a class attribute then give it one, ex:

          <img src="my.jpg" class="catablog-buy-now-button" />

          Now that your image has a class you may modify your theme’s style.css file and add the class description for your buy now button, ex:

          .catablog-buy-now-button {
            background: transparent !important;

          • Vero says:

            WOWEE!!! Thanks a lot, that worked perfectly… Very nice of you to take the time to explain things to the newbies like me… ๐Ÿ˜‰

    • Wilkerman says:

      What about tracking? Can you add stats: ppuolar item; items sold this day / week / month / annually; items sold normally this time each year; ppuolar page [ which item do people look at the most].I figure since you are using php and using a database that you can generate reports quite easily.

      • Zach says:

        You can try and add this yourself or find a plugin that works with CataBlog to add this functionality, but I am not going to be adding new features anytime soon, since I am to busy working for actual money.

  12. paola says:

    Hi Zak, congratulations for the work, we have a problem, add to cart button generates the price in dollars, how can we change in euro. Thanks

  13. Zach says:

    You can change the currency used in the Store Template in the CataBlog Template Admin Panel. Simply login to your Admin Panels, go to CataBlog > Templates and click the Store Tab. There you will see a bunch of parameters that are used by the PayPal button, there should be a currency parameter. If there is not you can probably add one, research the PayPal button API and how to change currencies.

    • Paola says:

      Hi Zach, thanks, have solved , I now have another problem, this is the link so you can see, the title goes under the ‘image, you can give me advice? Thanks again

      • Zach says:

        You are giving every image inside your entry content a margin of 5px, this is shifting your catalog thumbnails over the title. I would recommend adding an override CSS class to your theme’s style.css file or a catablog.css file in your theme’s directory. Here is what the override class should look like:

        .catablog-catalog .catablog-row img {
          margin: 0;

        If above class doesn’t work try this one!

        .catablog-catalog .catablog-row img {
          margin: 0 !important;

  14. Gary says:

    Really liking Catablog. I’m finding it does exactly what I wanted – so far, apart from I haven’t worked out how to buy multiples of each product.

    Is it possible to have customers pick a number of items from a drop down or allow customers to enter a value in the field? We sell products that customers can buy in multiples.

    Thanks – and great work!


    • Zach says:

      Hi Gary,

      it’s pretty simple to add a drop down menu for quantity, what I would recommend is logging into PayPal and making a button with a way to select quantity and getting the HTML code from it. Then simply replace the CataBlog Store Template with the new PayPal code, replacing any variables with the appropriate CataBlog Tokens.

  15. Tim Ibbotson says:

    Hi Zack,
    Heres a good one for you. Is it possible to have multiple STORE templates? I want to sell different printed media at different sizes at different costs. I have created a paypal button with the size’s and price’s for one type of print. Now I would like to set up another catablog category with another paypal button offering different size’s and price’s thus needing another store template with the different paypal source code in it. Is there anyway?

    Thanks in advance

    • Zach says:

      Hi Tim,

      Currently there is no way to have ‘multiple store templates’, but the store template is really just a convenience feature. If you know that every catalog item in your collections will have a paypal button, then simply copy and paste the store template code into a new template that you make yourself. You can then make multiple templates for each different type of paypal button. Does that make sense? Let me know how it works out and good luck.

  16. Gaston Mascolo says:

    This plugin it’s awsome, works really good and it’s very complete.
    But don’t know how to solve this problem
    It’s possible to make the price from paypal different than the price shown in the variable %PRICE% in the catablog?, for example y want charge with a 10% plus all products bought with paypal.
    Thanks a lot… and excuse my poor english

    • Zach says:

      Hi, thanks for the praise about the plugin, very appreciated. I am unsure, but PayPal may have a field you can add to the buy now button to raise the price by a value or percent. CataBlog does not have a built in way to this. Good luck.

      • Gaston Mascolo says:

        Ok, thanks for the reply.
        im afraid im not usign paypal services, but the provider has the same form to use.
        Y was looking in the catablog code where you define the token %PRICE% because i could make a little change there and create another,
        for example: %EPRICE%= ((%PRICE% *10)/100) then i could work with charges.
        But didnt find where the tokens were.

  17. Jessica says:

    Would there be a way to add a tax function in the catablog store template? I just need to tac on 13% to everything

  18. Manuel says:

    Hi Jessica check this PayPal link

    It will allow you to set up your sales tax on your PayPal profile.

    Kind regards

  19. Igor says:

    Is it possible to make a button near each item, which transfers not to PAYPAL, but to the page where this item is just added to card, so that a person can add to his card different items to make comparison what did he chose.
    Buying product is not necessary for my catalog.
    A person will just comparison items, choose them and send me a list of chosen items by the form to my e-mail.


  20. Mickey Kelly says:

    Heya! Love this plugin. I’m using the CSV import and trying to get the paypal section to work. I have a price on all items. I can’t tell if this is a theme issue or user error.

  21. Massimo Miniera says:

    Hi, how can I create the ” Popup Contact Form ” as in archi-artsย 

Leave a Reply

Your email address will not be published. Required fields are marked *

Please wrap any HTML markup or code with the pre-formatted tag: <pre> </pre>