Posts by Mxkert

    Hello,


    I am getting a HTTP 500 error when adding a product to the cart.

    In my error logs I find this:


    Code
    1. [Tue Apr 02 16:34:00.294419 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function groupTaxRate() on boolean in /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php:384
    2. [Tue Apr 02 16:34:00.294485 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: Stack trace:
    3. [Tue Apr 02 16:34:00.294490 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: #0 /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php(369): PerchShop_Product->get_prices(1, 'standard', 'exc', Object(PerchShop_TaxLocation), Object(PerchShop_TaxLocation), Object(PerchShop_Currency), Object(PerchShop_CartTotaliser))
    4. [Tue Apr 02 16:34:00.294496 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: #1 /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php(723): PerchShop_Product->get_prices(1, 'standard', 'exc', Object(PerchShop_TaxLocation), Object(PerchShop_TaxLocation), Object(PerchShop_Currency), Object(PerchShop_CartTotaliser), true)
    5. [Tue Apr 02 16:34:00.294509 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: #2 /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php(285): PerchShop_Cart->calculate_cart()
    6. [Tue Apr 02 16:34:00.294513 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: #3 /home/kndrxwbst/domains/kendrix.website/pub in /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 384

    What could be wrong? I have almost entirely duplicated from another Perch Shop website of mine, which works fine.

    Hello,


    I am using Perch Shop and when adding an option value, the debug message outputs the following:


    Code
    1. Array
    2. (
    3. [title] => Blauw
    4. [skucode] => BLAUW
    5. [id] => 28
    6. )
    7. [1] SELECT * FROM perch3_shop_option_values WHERE valueID='28' AND valueDeleted IS NULL LIMIT 1
    8. UPDATE perch3_shop_option_values SET optionID='1', valueTitle='Blauw', valueSKUCode='BLAUW', valueOrder=12, valueDynamicFields='{}', valueUpdated='2019-03-08 14:46:13' WHERE valueID='28'
    9. No ids to log.


    Also, when adding a product with options to the cart, the option gets output as a number (the id) instead of the title.

    Option: Purple

    SKU code: PURPLE


    When adding in cart it says:

    Color: 87


    Code in my cart:

    Code
    1. <perch:if exists="color">Color: <perch:cartitem id="color" /></perch:if>


    How could I output the option title instead of the id, and why does it says No ids to log?

    The only thing I need is to call the below code somewhere:

    Code
    1. $Order->set_status('paid');

    I now put it inside /perch/addons/apps/perch_shop/runtime/orders.php

    My gateway is changing the order status to paid_gateway when payment was succesful.


    This is ofcourse not the best solution, and will be overwritten wel updating perch_shop in the future. Does anyone have another option to call the set_status somewhere?

    I understand what you mean, but everything is being done by Perch with a gateway class, until it redirects to the Mollie gateway website.


    For example I am using the below code to give options to the gateway:



    This is all being done with Perch, so it is not totally bypassed from Perch, right?

    Hello Design,


    I would use the following in my top layout to output the blog meta template when in a blog post:


    PHP
    1. <?php
    2. if (perch_layout_has('blog-post')) {
    3. perch_blog_post_meta(perch_get('s'));
    4. } else {
    5. perch_page_attributes();
    6. }
    7. ?>


    Hope this helps.


    Mike

    Hello,


    I have implemented the Mollie payment gateway in Perch, but the webhook is handled outside of Perch.

    Using this webhook I am setting the order status to paid once the order is succesful. Sample code below:



    Now when creating an order, so when my checkout page sends me to the payment gateway, the created email gets sent (not needed, but for testing purposes). So the payment is succesful and the gateway sends me back to my thankyou page and updates the order status in the database to paid.


    After updating the order status, no email gets sent out. How could I handle that last piece, which would send the paid order email?


    Mike