Posts by hus_hmd


    I'd probably look into doing the opposite:

    • Write a custom form handler (custom Perch app)
    • Update your form so your custom app handles the responses <perch:form app="chopperoon_app"></perch:form>. You may also need to add a hidden input field for the total score.
    • Calculate the score in your form handler
    • Add the score to the submitted form's data
    • Redispatch to the Perch Forms app to store the response along with the score

    1. <perch:form app="chopperoon_app" id="quiz"></perch:form>


    There is a handy app that uses template handlers to make working with translated content easier:

    If your edit template has the following:

    1. <perch:content id="name_en" type="text" />
    2. <perch:content id="name_fr" type="text" />

    You can use something like this in your display template:

    1. <perch:translate id="name_en" en="name_en" fr="name_fr" />

    but WorldPay isn't redirecting back to the development site

    Is your development site publicly accessible?

    From what I remember WorldPay does NOT redirect back to the site. Instead they fetch your success page's HTML and display it themselves. I think they even remove any Javascript from the page. So the success page is not actually displayed on your site.

    Your success page need to be publicly accessible so WorldPay can fetch and display it. If you link to any resources (CSS, images, etc) on that page, you need to use full URLs because in this context they are external resources:

    1. <link rel="stylesheet" type="text/css" href="">

    I would suggest you keep this page extremely simple and include a link to allow the user to return to your site.

    Hello Andrew,

    It sounds like you added perch_shop_orders and perch_shop_products to your perch/config/apps.php file. Try removing them as you only need to add perch_members and perch_shop.

    Hi Claude,

    You need to customise the editor's configuration and enable the linkNewTab setting. You can refer to the Perch documentation for custom editors and this blog post for more information.

    This is probably all you need to add to your addons/plugins/editors/config.js:

    I don't think there is a way to do this. Displaying a different price on the product page (regardless of where the price is managed outside of the Shop app) would have no effect to how Shop calculates the order's total amount as far as I know.


    I want to create a field in the collection which will be used as the price of the product,

    Apart from displaying the Collection item's price instead of the Shop product's price on the product page, what are you trying to achieve? While you can output the Collection item's price on the product page, Perch Shop won't use that value in the cart or checkout.

    Hello Aleix,

    <perch:categories></perch:categories> has its own scope. Consider the following template:

    1. <perch:content id="heading" type="text">
    2. <perch:categories id="my_location" set="location">
    3. <perch:category id="catTitle">
    4. <!--* you cannot access the field 'heading' in this scope *-->
    5. </perch:categories>

    You can't access the fields from the outer scope by default. In order to access the fields from the outer scope, you can use the scope-parent attribute:

    1. <perch:content id="heading" type="text">
    2. <perch:categories id="my_location" set="location" scope-parent>
    3. <perch:category id="catTitle">
    4. <!--* you can now access the field 'heading' in this scope *-->
    5. <perch:category id="parent.heading" type="text">
    6. </perch:categories>

    So the scope-parent does not allow you to access a parent category and it is not the appropriate solution for your use-case.

    The closest thing to what you want as far as I know is catDisplayPath:

    1. <perch:categories id="my_location" set="location">
    2. <perch:category id="catDisplayPath">
    3. </perch:categories>

    This would output "California › Los Angeles".

    you could of re-asked the question... Is that the refresh values question??

    I answered it twice in 2 separate posts..

    No, I was referring to the PHP session ID:

    If you turn on debug and add the following to your page, you will see the session ID in the debug message (highlighted blue):

    The point of my previous comment is that you received a decent amount of support from the Perch team and from a community member. I went silent because from my perspective it appeared like you didn't look into what I suggested, which is absolutely fine if you thought it was irrelevant, but in return I can't suggest a solution without knowing what's causing the issue.

    I'm not saying don't leave feedback or suggestions for improvements, but I don't think there was a particular lack of support on your issue here. I admit a follow-up was missing from both me and the Perch team. If I was in your shoes, I'd probably be frustrated. And again I'm not putting all the blame on you.

    In any case, I hope I'm not driving you away from the Perch community. My intention was not to be hostile or attack you in any way, so I really hope that is not how you feel. If I can help in any other way, feel free to reach out. If you ever get stuck near a deadline and need some urgent help, you can contact one of the registered developers.

    All the best


    You can group items without filtering from within the template.

    Output the list in the order you need:

    1. perch_content_custom('Song List', array(
    2. 'sort' => 'songName',
    3. 'sort-order' => 'ASC',
    4. ));

    You can use conditional tags plus the format attribute inside the template to achieve what you want.

    The following outputs the first character of a field:

    1. <perch:content id="songName" format="C:1">

    The following checks the previous item against the current item:

    1. <perch:if different="songName" format="C:1" format-both>
    2. The first character of the previous item's songName is different than the current item's
    3. </perch:if>

    If you want the rendered HTML to be:

    You can use something like this:

    I have had to switch from Perch to CubeCart!

    Ah that's a shame. Well I hope the project went well otherwise.

    Though, since you addressed me by name I'd like to mention that I'm disappointed you have labelled this as "lack of support" because:

    1. Drew tried to help you and there was some back and forth correspondence between you two
    2. You had some further questions and I answered them
    3. You mentioned the cart ID keeps increasing, I explained why this may happen and tried to help you confirm whether this was indeed the reason
    4. You again mentioned the cart ID keeps increasing instead of working with me to try to work out the cause

    Communication is a two-way street. Good support relies on good communication. I tried to confirm whether you had a problem with PHP sessions:

    So this sounds like the PHP session expires prematurely and a new session is started, hence Perch Shop creating a new instance of the cart when you reload the page.

    Do you keep getting different values when you refresh the page?

    I'm not putting all the blame on you and I understand your frustration a little bit. I could have re-asked the question, but I'm not obligated to do so. I'm just another member of this community. No one pays me to help other Perch developers. I took the time to explain what could be the cause of your issue and tried to work with you to confirm the cause, but you frankly didn't adequately address that.

    I can't speak of how first-party support works, but you got some from Drew in a section of the forum that is clearly labelled "Help - Customer to Customer". I hope drewm and rachelandrew explain the type of first-party support the customers are entitled to. Hopefully that would help manage everyone's expectations.