Posts by James Harrison

    I have a client that would like to remove the payment processing part of Perch Shop so that it still uses the cart and all the other Perch Shop features, but emails the order only, bypassing the payment processing component. We did it once before for another client using just Perch Runway and no Perch Shop, but it was a bit elaborate and I'm hoping to provide a simpler solution. Has anyone gone down this road before and just needed an order to be emailed and tracked in the Perch DB without requiring Stripe or another payment gateway? Maybe it's quite simple and I am just missing the boat.

    Thanks in advance!

    Thank you for the speedy reply Hussein!

    Since I am using Runway, I was hoping I could just use /products/example-product, is Runway capable of that? We tend to use Slim PHP for our normal Perch routing, so using ?s=* is not what I expected from Runway, but clean URLS - do I have to use perch_get('s') in this instance only?

    Thanks again,

    I am creating a site using Perch Runway and the Shop app, but I am having trouble using a slug with the Perch routing for products. Can someone shed some light on this for me? Here is what I am trying to do:

    My product template has this slug template tag:

    1. <perch:shop id="slug" type="slug" editable="true" indelible="true" label="Slug" for="title" order="10" divider-before="Meta data" />

    I have a master page called product.php which has the following code in it, but I don't know how to isolate that slug where I have 'slug' below (if that makes sense):

    1. <?php
    2. perch_shop_product('slug', [
    3.     'template' => 'products/product_detail.html',
    4. ]);
    5. ?>

    Naturally, that returns nothing, if I replace 'slug' with 'example-product' (which is the slug generated for that product), it loads. But I need to pull the slug value for the product into here, which is the part of the puzzle I'm missing.

    This is the page I was referencing in the docs:…ducts/perch-shop-product/

    Any help would be greatly appreciated!

    Hello Hussein,

    Thank you very much for your detailed response.

    Product Customisation does look like the best solution for sure, however based on the roadmap, I feel it probably won't be ready in time.

    Product Options may work as you outlined and although it might be cumbersome to administer, I'll give it a try first.

    I have used Cart Properties on another project, and you are correct, it would only work for a one entire order, so the user would be limited to one package of cupcakes only per order.

    Your last solution I am still thinking about, I understand the idea, just unsure of how multiple packages would be added to the cart if needed (which I am sure will be the case).

    I really appreciate your thoughts and will update this post with either a working solution or more questions and issues, if encountered!

    I am in the process of developing a Perch Shop store which sells cupcakes in packages of 6 and 12.

    This wouldn't be tricky if the cupcakes were all of the same flavour, however, the client would like to be able to have a choice for each of the 6-12 cupcake slots from their available cupcake types (products within a "cupcake" category). I am trying to think of how to manage this with Perch Shop, but I am drawing some blanks. I feel like using <perch:layout> within a shop/products/product.html template might work? Could the cart / checkout support something like this? This is probably quite simple, but I am missing a key piece.

    I see it being a list of 6 or 12 selects, each with all the available cupcake flavours as options, all added to the cart as one 6/12 pack item.

    Thanks for any suggestions!

    I have a client that would like their staff to be able to login with a username instead of an email address (like the Perch CMS login) using the Members app. Is this a possibility?

    After adding a new text input called "username" into the /members/member.html template and modifying the login_form.html template to match that same input name, I can't get Perch to recognize it. When I use <perch:showall> on the login_form.html, there isn't much to go on, so I'm not sure what I have available to me.

    Any insight would be appreciated!

    Thank you Drew, that was exactly what I needed.

    I added the following to the checkout.html page:

    1. <perch:input type="textarea" id="personal_message" label="Personal Message" cart-property="personal_msg" />

    And then included that value into the order_paid.html template:

    1. <perch:if exists="perch__personal_msg">
    2. <p><strong>Personal Message</strong><br>
    3. <perch:shop id="perch__personal_msg" /></p>
    4. </perch:if>

    One little problem I had was in modifying the order_paid.html template, I tried copying the template from perch/addons/apps/perch_shop/templates/shop/email to perch/templates/shop/email and Perch ignored any changes I made to it there. Is that a file I have to edit in place or is there a way to duplicate as a normal template that I am missing?

    Thanks again.

    Hello there,

    We have built a Perch site a while ago, using the Shop app for ordering flowers and gifts (checkout process can be seen here), and the client would like to be able to have the order include one to many message(s) attached to the flower order cart. Is it possible to have a text field input on either the cart or checkout levels? I seem to think the checkout form would support it, but not the cart (where the client would like the text message to be, as a user could be ordering more than one set of flowers in their order that needs a message attached).

    Thanks in advance!

    Thanks for your response Drew, that makes sense, but it would have to be done outside of Perch I am assuming, or is that an option in Perch? The site currently uses some simple geolocation, so perhaps that is something to be tapped into.

    Customers not in the USA or Canada can not receive product as their countries are not an option for shipping. Currently, the site ships to both Canada and USA, but uses one shared Stripe account and one email address is notified of all orders.

    Does anyone know if it's possible to have multiple Stripe accounts on one Perch Shop site? An existing Perch Shop client has asked to have the following and I'd like to see if it's something that can be achieved:

    1) Sales to USA customers go through Stripe account A

    2) Sales to Canada customers go through Stripe account B

    3) USA email address gets an email of orders to USA customers

    4) Canada email gets email of orders to Canada customers

    Thank you!

    Thanks Drew, I did that and found there is a missing column in the db on line 9:

    This project started originally with a beta version of Shop, could there have been a sql update that wasn't made along the way, with all the updates to the more final versions of Shop?

    Any idea what I need to do to resolve the error?


    Hello there,

    I am trying to create an email that is sent out when an order is placed within Perch Shop under Shop -> Emails. However, whenever I try to submit the form on that page, I get an error message that says: "Sorry, that update was not successful". Is there something that needs to be done to make this section work? A screenshot is attached for reference as well as my Diagnostics Summary.

    Thanks in advance!

    Can anyone let me know if there is the option of adding the value from a <perch:input> tag into "Forms -> Form Options -> "Email subject line"?

    I have a client who wants to manage a list of recipients themselves and have the Subject Line populated with the chosen recipient in a form, but I don't see any way of being able to interface with the subject line in a more dynamic way.

    Thanks in advance!