-
-
Notifications
You must be signed in to change notification settings - Fork 56
Conversation
- Add rendering to 'woocommerce_before_template_part' hook (inspiration in https://github.com/kimhf/sage-woocommerce-support) - Add local variables to template #6 - Render only when not in status screen #9 - Provide data access as suggested in #9
Thanks, @mejta. If this PR is ready to go, I can merge. All wrapped up? |
Ready to merge @mmirus. Can you do a release with that, please? Thanks ;) |
Sorry for commenting here, But the Shop page now show blank. |
@besrabasant Can you provide more details, please? I haven't experienced this issue so far on my e-commerce project. Thank you. |
@mejta It's nothing much... I just replaced all the |
Can you please send me all overwriten templates, do i can simulate the issue on my environment? Thanks. |
Sure @mejta. Here are the templates. |
Hi, I've copied your template into my project and try that in functional e-commerce site locally. I have sage-woocommerce v1.0.3 and all plugins up-to-date. I also removed all cached compiled templates and the result is that I haven't found an error. The only page that is malformed is archive-page, I can see that processing of blade template was somehow interrupted (maybe some Other pages work as expected, so I assume that it's not an error of this package, but some malformed template that is included. Dan |
@mejta So, I looked through the templates and found out that the bug is in the |
Hi @besrabasant, template @php
global $product;
@endphp
@if(!empty($product) && $product->is_visible())
<li {!! wc_product_class() !!}>
@php
do_action('woocommerce_before_shop_loop_item');
do_action('woocommerce_before_shop_loop_item_title');
do_action('woocommerce_shop_loop_item_title');
do_action('woocommerce_after_shop_loop_item_title');
do_action('woocommerce_after_shop_loop_item');
@endphp
</li>
@endif |
Hi @mejta, I tried the template snippet provided by you above but still no success. |
No. But Now I pinpoint the bug precisely. It's in the if statement inside the |
@besrabasant @mejta thanks both for your work on this. Is this something that should be addressed in this package, or something that just requires a change to the template code? |
@mmirus Thank you for your appreciation. It seems this issue is related to this package. |
Thanks, @besrabasant. @mejta - any thoughts on the new info above? |
Yes, that is strange. I wonder it it wasn't the number of products but something about a specific product or products. I'm testing using the WooCommerce sample data that ships with the plugin and the template files you provided above (with the fix suggested by @mejta to |
@besrabasant @mmirus I don't think it's a problem of this package, it seems as a problem of data/hook/or something. |
Thanks both! |
woocommerce_before_template_part
hook (inspiration in https://github.com/kimhf/sage-woocommerce-support)