Posts by Glen

    What's nice about the Events app is the editing environment has tabs for past and future events. I really don't want to lose that yet. And I have not seen any issues where techniques used in any other Perch app don't work in events. So its still my choice for date-based data.


    I currently have an extensive what's on listing using collections - the only issue is that all events are displayed in the admin.


    Does anyone know of a way to filter past and future events in the admin using collections?


    Many thanks

    Hi All,


    Firstly, the major item - at this link you will find an update, and documentation, for Perch Shop. This is to facilitate SCA compliance, obviously we would recommend testing this first, any issues please let me know so I can pass them to the developers.


    Well, that went well. when visiting domain.com/perch I get an HTTP 500 error after uploading the Perch Shop v1.2.7 files :cursing:

    Hi montlewis many thanks for your kind reply.


    Debug after subscribe form is submitted below...


    Me again ;)


    I trying to display a simple navigation tab style using perch_categories(), which in itself works fine. However, so the user knows which category they are currently viewing I'm wanting to dynamically set the class class="active" on the active category link.


    I have successfully set the category slug within the URL, retrieved the category slug and passed it into the template. The problem I am having is getting perch to create the class if the 2 match.


    So for example, if the URL is domain.com?cat=outdoor the links would look like this...


    Code
    1. <ul>
    2.     <li><a href="#">Indoor</a></li>
    3.     <li><a href="#" class="active">Outdoor</a></li>
    4. </ul>



    Here's what I've got so far...


    Page:

    Code
    1. $cat = $_GET['cat'];
    2. PerchSystem::set_var('active', $cat);
    3. perch_categories([
    4. 'set' => 'attractions',
    5. 'template' => 'category_nav_pills.html',
    6. ]);


    Template:


    Many thanks


    Glen

    Hi Mxkert


    Thank you for your help.


    So sorry for the delay, I have had to spend more time on other projects.


    Sorry Glen, I forgot about this thread.


    What happens if you change it to

    Code
    1. $item['exVAT'] = perch_shop_product('', [
    2. 'template' => 'products/ex_vat.html',
    3. 'filter' => 'slug',
    4. 'match' => 'eq',
    5. 'value' => $item['slug'],
    6. ], true);


    ...unfortunately, no data is displayed / passed to the template.


    Glen

    HI all.


    I hope someone can help.


    I have installed and set up the Mailchimp addon and have successfully added the API and sync'd the lists and existing contacts etc.


    However, when I try to add a contact to the list via a perch form, the contact isn't being added to Mailchimp.


    Debug shows no errors, webhooks URL is correct etc etc.


    Any pointers would be much appreciated.


    Form code...


    Diagnostics...

    And what do you see on the page when you use the following:




    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79



    5.656.255.757.506.256.257.506.255.9997.993.4946.997.958.35

    6.79

    Thank you so much Mxkert for your help so far, we're getting there.


    I am now getting just one amount but I'm getting the same amount on each product listed... £6.79 inc VAT.


    What does your list-category.html template looks like?


    Hi All


    I'm currently building a full online shop for trade customers only, so it shows all prices as ex VAT but I also wish to include the inc VAT price too for those not VAT registered.


    I've got it to work perfectly on a single product page but am having problems displaying it on a product list page, this is what I've got so far to display the product listing...



    ...this is basically listing all the ex VAT prices for all products in one string... £6.255.757.506.256.257.506.255.655.9997.993.4946.997.958.35 inc VAT.


    Any help to get this to work out the inc VAT price for each product individually would be much appreciated.


    Glen

    Hi All


    Quick question, is there a way of automatically adding a discount in Perch Shop when a customer buys more than 5 of the same product?


    This needs to be on selected products only.


    I could set up a discount code but would prefer the discount to be applied automatically.


    Many thanks


    Glen