Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rguthrie

    (@rguthrie)

    For anyone else experiencing this problem, I will post my solution: The plugin makes a check to see if a view cart button already exists for a particular company before creating one. It does this by checking the meta_value of a paypal_wp_button_manager_viewcart_button_companyid entry in the postmeta table of the MYSQL database. For a reason that I have not yet been able to work out, when a paypal_wp_button_manager_viewcart_button_companyid entry is written to the table, a null value is being assigned to this meta_value, so that when the check is made the next time, it does not think that a view cart button has already been made, and generates another paypal_wp_button_manager_viewcart_button_companyid entry, also with a null meta_value entry. And so on…

    On the instance of the paypal_wp_button_manager_viewcart_button_companyid with the lowest post_id, I changed the meta_value from null to 1 (the post_id of my company. If you have more than one company set up, you will need to enter the appropriate company post_id). Now the check mentioned above comes back positive, and I have since been able to create a new button/short code without an additional view cart button/short code also being generated.

    You will need access to the database itself in order to effect this change.

    Thread Starter rguthrie

    (@rguthrie)

    Sorry for not being clearer. Every time I create a new Paypal button with the button manager, a button and short code is also produced to see the shopping cart, resulting in multiple instances. A picture speaks a thousand words Screen grab of button manager page

    • This reply was modified 7 years ago by rguthrie. Reason: Clarification
    Thread Starter rguthrie

    (@rguthrie)

    A mark at the end is not required. As stated in my original query, I would be using the plugin more as a learning tool than a test, which I know isn’t its primary use ??

    Just a note to add that if pasting Troll’s code, you may need to change the single and double inverted commas from ‘curly’ ones to ‘straight’ ones to get it to work (which it then does).

    Thread Starter rguthrie

    (@rguthrie)

    Hi Pankaj

    I have been thinking about this issue some more, and have come to see the ‘issue’ rather as a ‘feature’ of your plugin. With the previous plugin that I used, I had to insert a title for any wording to be displayed with the lightbox image. With your plugin, the caption is pulled in and displayed if no title has been entered, or if the title is different.

    I can therefore dispense with a title for the image link, if I want the text to be identical to the caption, or add new text if I want additional information about the image displayed when viewed at full size.

    The only ‘improvement’ that I could envisage to your plugin would be to have an option in settings to display the caption or not.

    The issue has arisen because I didn’t understand fully how your plugin worked, and so gave too much information when setting up an image in a gallery, i.e. filling in both caption and title.

    For the reasons above, I consider the topic resolved. Thank you for your time in looking into it.

    Richard

    Thread Starter rguthrie

    (@rguthrie)

    On this page, https://scotland2013.macademy.co.uk/day-15-new-lanark-to-belfast/
    the third and eleventh images of the gallery are showing both the title and the caption. I am now running WP 3.6, and have disabled my hack for you to see the issue

Viewing 6 replies - 1 through 6 (of 6 total)