Posts by Glen

    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

    Hi all


    I am using subcategories to structure my Perch Shop products and as such, I am trying to create a breadcrumb using the category structure, like so...


    Home > Cat Title > Subcat Ttile > Product Name


    So far I have got it to work but it only displays the subcategory (Subcat Title) and not the top category as well.


    Code
    1. <ol class="breadcrumb">
    2. <li class="breadcrumb-item"><a href="/">Home</a></li>
    3. <li class="breadcrumb-item"><perch:categories id="category" set="products"><a href="/<perch:category id="catPath">"><perch:category id="catTitle"></a></perch:categories></li>
    4. <li class="breadcrumb-item active" aria-current="page"><perch:shop id="title" type="text" /></li>
    5. </ol>


    ..how do I get it to display the full category path, please?


    Many thanks as always.


    Glen

    Hi All


    Quick one, is there a way to set the pagination template so that it doesn't show the first page and last page numbers. So for example, it currently displays as...


    1 ... 4 5 6 7 ... 10


    ...I'm trying to display it as simply as...


    4 5 6 7


    ...so just the 'middle' page numbers.


    Many thanks as always


    Glen