Custom WordPress theme: Shop page not found - php

I'm developing a custom WordPress theme including WooCommerce. To modify the WooCommerce default templates, I simply added a woocommerce.php file to my themes root folder. Everything works fine except the shop page. Whichever page i assigned to shop page gets 404 page not found. All other things like single product, checkout, cart working smoothly.

Related

Location and changing category page loop in WooCommerce

I'm trying to use this plugin to add product highlights in the shop category loop in WooCommerce.
While the plugin works nicely with Astra and Storefront (highlights shown above "add to cart" button), the highlights are shown post "add to cart" for the site using UXThemes Flatsome theme.
Because the plugin works nicely in Astra and Storefront, I gather Flatsome somehow alters the loop / hooking for products shown in the shop / archive page.
My question: How do I go about debugging and figuring out exactly where Flatsome drops the ball? I really need the highlihts to be shown before the add-to-cart button. You can see a staging / testpage here:
Right now I'm sifting through the theme layout and loop php files, and not getting any wiser.
Thanks in advance for any help

Woocommerce custom theme checkout page not showing

I'm creating a custom theme for a woo commerce website. Everything is good except that with my theme when I click on "checkout" in the cart it redirect me on my main page but with the URL of checkout.
If I active a simple theme as twentynineteen then i have my checkout page.
I tried to copy the checkout folder of woocommerce but it does not change anything.
What I don't get is that I don't override anything about this checkout page, so it should inherit from woocommerce and show it.
Here is my theme code: https://bitbucket.org/romain_o/wp-theme-flopo/src/master/
Thanks for your help
I don't see page.php template in given theme source code.Can you please create page.php template & make sure to put the_content(); in it. even if i create other pages they are not coming & redirecting to home page.

Wordpress - Woocomerce archive page show brand before title

I have an eCommerce site, building with woo-commerce, and I installed a plugin that shows the brand of the product.
In single product page, I manage to put the brand name (text) before the title.
but in the shop main page, I'm trying to put it under the thumbnail and it does not work.
This is the action loop that I found in plugin files:
add_action('woocommerce_after_shop_loop_item_title', array($this, 'show_brands_in_loop'));
and I tried to change it to every loop and it didn't work I tried:
woocommerce_shop_loop_item_title
and:
woocommerce_before_shop_loop_item_title
nothing work I'm trying to place this here (the green line):

How to enable the WooCommerce Sidebar?

I have a website in made with Wordpress 4.1.15 and I'm using the WooCommerce as a virtual store.
One of my admins deleted the Checkout and Shop pages, then I had to recover them from the trash but after that, the WooCommerce Sidebar disappear and now is disabled in the widgets area.
How can I force and enable again the sidebar?
Thansk
Go to Shop edit page ant look at template. Select sidebar template if there is one. If there is no template with sidebar you have to create one.

Duplicated payment methods field on checkout page [ woocommerce ]

Having some problem setting up my woocommerce shop because of the checkout page.
The problem is that I'm facing duplicated payment methods that appear on BILLING Page and also ORDER & PAYMENT page.
I'm using a theme that haves a one page checkout.
If anyone can indicate how can i remove the links
Images that explain the the situation
http://i.imgur.com/ODCTERg.png - Billing and shipping page that show the wrong placement of the field
http://i.imgur.com/s26UfjI.png - the payment page that show the right and wrong placement of the field
I'm not 100% sure why the payment options are appearing on your Billing Details step (this will be down to how the theme is built); however I suspect this is happening because your theme has a woocommerce folder, and following one of the more recent WooCommerce updates (around 2.3.0, I think), the WooCommerce theme files have changed slightly.
Previously, the payment options loop was in /woocommerce/checkout/review-order.php in your theme folder. However, it was removed from this file and there are now two new files: payment.php and payment-method.php.
It's most likely that your existing review-order.php template contains the loop for displaying the available payment gateways, but WooCommerce sees that your theme doesn't have the payment.php file, so is helpfully using its default (located in /plugins/woocommerce/templates) - as a result, your checkout is doubling up on displaying the payment options.
Try:
Make a backup of your current review-order.php file, then copy 'review-order.php, payment.php & payment-method.php from /plugins/woocommerce/templates/checkout/ to your theme folder: [your-theme]/woocommerce/checkout/.
Hopefully, you should no longer see the doubling-up of your payment methods. On the downside, you may well have to modify these files to bring them back in line with your theme.
Just rename this folder:
/wp-content/themes/themename/woocommerce/checkout
It Is old code which is coming with theme.

Categories