• Resolved wpfiend

    (@wpfiend)


    Hi.

    Multiple pages are tied to one product and it is working well.

    However, when someone is not logged in and they try to view a protected page, they get the “Oops page”, but the wrong product is displayed below the message. I suspect this is because I am not telling the plugin which out of the multiple pages it should display.

    This is the shortcode I am using: [product_page id="{{product_id}}"]

    Can you please help…??

    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Are you replacing {{product_id}}} with your actual product ID? For instance it should be something like [product_page id="99"]

    Thread Starter wpfiend

    (@wpfiend)

    Appreciate the response.

    This shortcode is in the “Oops Page” in the Settings in the Admin panel.

    I don’t want to hardcode a specific product ID in it. I just left it exactly the way you see it in my above post. How would I tell the system to “insert” the product ID of the item that page is linked to…????

    (P.S. If only one page is linked to one product this issue does not arise.)

    Any ideas..??

    Thanks again.

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    I would need to do some investigating into the code, essentially it does replace that {{product_id}} with the value from the custom_field for that page… I will have to test out the multiple products and see if there is a bug with it.

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Okay try this, update your OOPS content to use the products shortcode instead of the product_page shortcode. So try this instead [products ids='{{product_id}}']

    Thread Starter wpfiend

    (@wpfiend)

    Matt.

    It is working to a certain extent. Now, all the Products that are tied to the page are showing up below the “Oops message”, and not the singular relevant product.

    Thanks.

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    That’s not how the plugin works… You can have it say you can access to this page if you purchase ANY of these products, not you need to purchase ALL of these products to get access to this page. I don’t see any way that I would easily be able to do what you are looking for with how the plugin is setup currently.

    Thread Starter wpfiend

    (@wpfiend)

    Ok, thanks Matt.

    I had understood it a little differently. This way will work too.

    Appreciate the awesome customer support.

    All the best.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multiple pages protected, but showing the wrong product on Ooops page’ is closed to new replies.