I have had alot of help before from Rohil_PHPBeginner and the code he helped me with worked really well.
Today i have had someone on the site they removed a category that the code used needed to print the information i needed on screen.
The original code that solved my issues is found here:
Wordpress Woocommerce Advice with PHP code
Unfortunately the code is stopping my product page from displaying the product information. If i remove the code then it works fine but the functionality the code added really made the product page so much better.
I've checked and the category that was deleted was get_term_child, so i made sure to change this number on the product title.php
However nothing has worked and i get this error message (seen on this page)
https://www.artgiftedbygod.co.uk/online-art-shop/musical-paintings/marely/
Could anyone help me?
I've tried to fix the issue but i dont think it is related to this category being deleted as i have recreated it and changed the title.php to the correct number.
Thanks
Adam
Related
I posted this on the WordPress Stack Exchange yesterday and I am crossposting it here as we are desperate for help.
The agency I work for purchased the Product Add-Ons plugin from WooThemes a few days ago for use on a client's website.
Upon installing and activating the plugin, I cannot get it to display on the product pages.
The plugin works in terms of adding the Add-Ons in the backend, however I am unable to get it to display in the frontend.
I have added different tiers to the Add-Ons, for testing purposes, however that has delivered no successful results.
I have been trying to rectify the issue, however I have had no such luck. I have read through the documentation, however I still cannot seem to rectify the problem.
Epson WorkForce DS-30 Add-On Information Screenshot: http://i.imgur.com/3xVSpYE.jpg
Epson WorkForce DS-30 Product page Screenshot: http://i.imgur.com/Sc9dCE3.jpg
I have since populated all applicable products with the add-on information, and the product pages are still coming up without them (see screenshots above).
I have contacted WooThemes directly, and as of yet have had no response. As far as I am aware, it has not been forwarded onto a specialist ninja as of yet and the client is getting rather impatient with the website not going live, and frankly I don't blame them. Unfortunately, I don't seem to be able to rectify the issue so I hand over to you.
I would appreciate any help you guys could provide.
EDIT: I have now had a response from WooThemes, and the response I got was that it was a theme issue. I have since contacted Themify about their ShopDock theme and I will keep this updated for anybody else who may be experiencing the same/similar issues.
Just Add the following short code in your code.
Or add via Elementor.
[yith_wapo_show_options]
Reference:
We have Magento 1.8 and everything was working fine until few days ago when we noticed products are showing up fine on the main page but for some reason do not show on any of the categories.
You can click on the product and see the details. You can search for any particular product and once again find it but nothing under categories. We have done all the usual things recommended on most forums we have searched through including reindexing and flushing the cache.
Please help - the page is maxkoldonline.com incase you would like to see the problem we are having.
NOTE: we have upgraded from 1.7 to 1.8 although we have not checked if the problem pre or post dates the upgrade.
Many thanks for your time.
Did you check to make sure the products are assigned to their respective categories? By going into a product, go to the categories tab and make sure it has a category assigned. There are many things that could cause this. But this is where I would start.
Try by enabling error display from index.php and see if any error comes on category page.
ini_set('display_errors', 1);
I have installed a simple PayPal Cart plugin:
http://wordpress.org/extend/plugins/wp-ultra-simple-paypal-shopping-cart/
Installed just fine. However, when updating a quantity or anything that involves the posting of a form, WordPress returns a 404 error page.
Now, when investigating, I noticed someone mentioned that WordPress has some reserved words for form field names internally.
( http://wordpress.org/support/topic/404-pops-after-custom-form-submission-by-post )
I followed this trail and altered the name fields with Firebug on the fly and post the form.
Everything was post to the current page and it stayed on the same page (as expected) instead of the 404. So it seems that this IS indeed a WordPress issue.
Is there any way I can add exceptions to certain names in WordPress as a setting of some sort? Or if anyone knows a work-around for this plugin, I'd much appreciate it.
Many thanks for your input.
Michael.
EDIT:
Someone has also had this problem. See this thread...
http://www.ultra-prod.com/developpement-support/wp-ultra-simple-paypal-shopping-cart-group3/bugs-errors-help-forum8/404-error-thread76/
Any idea on a solution? I can't simply rename my post type. This is for a website that's already in production and has hundreds of products.
Hope someone can help.
Using 1.4.1.1
I’ve recently changed some php code in header.phtml to align my navigation titles so the wording appears on top of each other.
After I did this I also changed the organization of the categories within the back end under Catalog > Category Management. none of the Cross-Sells, Up-Sells, Related products or New Products on the Home Page are showing up along with the sarch.
I’m not sure if changing the header.phtml is related to these options not working. I don’t see how changing the header.phtml could render those options useless.
The only other things i’ve done since i’ve changed that code was create a sitemap, and a new robot.txt file which should have no effect on the website and change the order of the navigation items up top....meaning, instead of “Navigation Category 4” being in the fourth spot, I put it in the 1 slot then moved it back to the four slot within the back end under Catalog > Manage Categories for a split second… I dragged and dropped them into a new location, but then moved them back to how those two categories were organized before. I also changed the name of an existing category.
yes… i’m sure that all products are instock, with quantity available. All these things (cross-sells, up-sells, new products, etc) were working yesterday so I know they are set up correctly. It seems like something I did changed the file that controls all of those options. I’ve also re-indexed and re-cached everything.
Does anyone have any advice on where to look or what may have changed? All the XML is still set up correctly under CMS > Pages > Home Page. It still shows XML there to call out the new products on the home page but there not displaying. I have a feeling once I fix the home page issue with not displaying new products, that the others will be fixed to.
Please remember that these options were working yesterday. Any advice is greatly appreciated.
Thank you.
P
P.S. I’ve also realized now that searching is not working on the website. I’ve re-indexed everything and it’s not working. The only thing not re-indexing is “Category Products” but that has always said “processing” and won’t re-index. So I dont know why that would now mess anything up. This is seriously killing me. Corrupt DB? I've tried to repair the db but cannot upload large .sql dumps via MYphpAdmin, and don't have shell access.
I will seriously send money to someone who can cure these issues. I'm a man of my word.
Thank you everyone.
Erase everything in /var/locks/ and re-index.
I've got an issue where only this morning my magento site at www.smartgaragestorage.com.au was working fine. All data could be found on single product pages and actual page data was visible on the front end.
Now, after doing some work on a Temando freight extension I get only the page title on CMS pages and no data on single product pages even though each product is listed under the correct category, you can add to cart and checkout without a hitch.
Any help would be appreciated...
Cheers,
Dan
Check the system.log, exception.log and apache error logs, this might give you some leads.
Did you clear the magento cache, and ran the indexer?
This helps allot sometimes, to make sure it is not data issues.
Then check if anything else is wrong.