• I’ve just added a second product and unfortunately that has messed things up.

    When I click on a purchase button it’s always a surprise to see which product will be added to the cart. The product id’s mentioned in the shortcodes of the product pages are correct, it must have something to do with caching I assume.

    I’m using cloudflare but this shouldn’t cause any of these problems (https://docs.easydigitaldownloads.com/article/993-cloudflare)
    I’m also using WP Rocket : Checkout pages have been marked as ‘never cache’ and this ‘/edd-sl/(.*)’ has been added to the list of pages that should never be cached. (https://docs.easydigitaldownloads.com/article/1054-caching-issues)
    I also added ‘edd_items_in_cart’ to never cache cookies.

    Is /edd-sl/ still correct? I don’t seem to find any directory with that name? And is it correct that this should be added to the list of pages and posts or where should I add this?

    The text parameter of the shortcode is also ignored. This is the shortcode used for the Japan Trip Planner but the buttons still show the default ‘Purchase’ text.
    [purchase_link id=”18059″ text=”Click to Purchase” style=”button largebutton” color=”blue”]

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter kcaluwae

    (@kcaluwae)

    UPDATE:

    Just to be sure I’ve added this page rule in Cloudflare to bypass cache: *wapititravel.com/*/edd-sl*

    It hasn’t solved the problem.

    Above I wrote that the wrong product is placed in the cart. Another issue is that sometimes nothing is placed in the cart. When clicking the button the text is replaced by a turning circle and it hangs.

    I hope somebody can help me because this drives me crazy :-).

    Thread Starter kcaluwae

    (@kcaluwae)

    UPDATE 2:

    I created page rules in Cloudflare to bypass cache for the Checkout page and all underlying pages as well as for all downloads (the product pages).
    Doing this seems to have solved the problems with adding the downloads to the carts. I’m surprised no one else has experienced this problems and I hope by sharing this solution I can avoid the frustration with other users that might experience this in the future.

    One thing that is not solved yet is the text on the purchase button. This is the shortcode I’m using on https://www.wapititravel.com/blog/en/eguides/japan-trip-planner/.

    [purchase_link id=”1XXXX” text=”Click to Purchase” style=”button largebutton” color=”blue”]

    As you can see the button just shows the default “purchase” text.

    Hi @kcaluwae

    Thanks for your patience. I have checked your website and added some product to cart as well as the button text are working properly.

    Does your problem resolved?

    Thread Starter kcaluwae

    (@kcaluwae)

    @pratik-jain Do you mean that you see “Click to Purchase” on the button?

    Hi @kcaluwae

    Thanks for your response.

    Below is the screenshot how it looks to me.
    https://prntscr.com/tf4u04

    Thread Starter kcaluwae

    (@kcaluwae)

    Hi @pratik-jain

    Thanks for the screenshot. It confirms that the text parameter in the shortcode is not working. This is the shortcode I’m using : [purchase_link id=”1XXXX” text=”Click to Purchase” style=”button largebutton” color=”blue”]

    It used to work for my first product but now both products just show the default “purchase” text and seem to ignore the text parameter I pass in the shortcode.

    Hi @kcaluwae

    As per your webpage it looks like that it is coming from any add-on.

    Are you using any add-on of EDD on your site?

    Thread Starter kcaluwae

    (@kcaluwae)

    @pratik-jain

    Yes, I’ve got two.

    Easy Digital Downloads Polylang and EDD Sale Price

    I have been using both the whole time, it has worked before.
    The plugins haven’t been updated recently but the latest update of EDD might have broken their functionality.

    • This reply was modified 4 years, 4 months ago by kcaluwae.

    Hi @kcaluwae

    Thanks for the details. I have taken a deep look into it again and found that is your product single page https://www.wapititravel.com/blog/en/eguides/japan-trip-planner/

    It looks like that you are not using button shortcode on your page right?

    Please verify the button setting for particular download page. There is a setting named “Disable the automatic output of the purchase button”

    Please refer below screenshot https://prntscr.com/tqcal3

    If it is uncheck it means EDD puts the purchase button by it self. The text parameter only works if you put the shortcode manually on page.

    If it is uncheck then you can manage the button text from plugin settings page. Below is the screenshot https://prntscr.com/tqcdfs

    I hope this will work for you ??

    Thread Starter kcaluwae

    (@kcaluwae)

    Hi @pratik-jain,

    I have checked the disable checkbox as I wanted to position the buttons myself and wanted the buttons to be larger than the default size. (as you can see below I added an extra css class)

    I’m using the following shortcode for the buttons of the Japan Trip Planner: [purchase_link id=”1XXXXXX” text=”Click to Purchase” style=”button largebutton” color=”blue”]
    (The same for all 3 buttons)

    I replaced the purchase link ID by X’s as I’m not sure if it is safe to share it in a forum.

    • This reply was modified 4 years, 3 months ago by kcaluwae.

    Hi @kcaluwae

    For your query,
    1) I have checked the disable checkbox as I wanted to position the buttons myself and wanted the buttons to be larger than the default size.

    Ans – Yes, you can. No Issue in that.

    So you are using the button shortcode in page content at your desired location. So custom text should work for you.

    I am little bit confused, Is it working for you or not?

    Thread Starter kcaluwae

    (@kcaluwae)

    Hi @pratik-jain ,

    Sorry for the late response, I was away for a while.

    It’s not working.

    The shortcode I’m using [purchase_link id=”1XXXXXX” text=”Click to Purchase” style=”button largebutton” color=”blue”] should result in a button with text “Click to purchase”.

    The button shows the default “Purchase” text.

    Regards, Kris

    Hi @kcaluwae

    It is very strange. Have you checked this setting? https://prnt.sc/tqcdfs

    Thread Starter kcaluwae

    (@kcaluwae)

    Hi @pratik-jain,

    I didn’t use those settings so they were empty. If I enter the value there it gets picked up and is shown on the button but unfortunately, the parameter is not working.

    This works as a temporary workaround but I would still prefer to add the text in the parameter field so I can customize it based on the product.

    I will try to do some further tests to see if it is a conflict with the EDD sale price or EDD Polylang plugin.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Downloads getting mixed-up’ is closed to new replies.