boomtree
Forum Replies Created
-
Forum: Plugins
In reply to: [Woocommerce CSV importer] Display custom fields on product pageGaw lee. The problem was that my fields were imported with a space at the beginning. So by adding a space, everything works. ‘ _composition’ rather than ‘_composition’.
Anyway, this code should help the OP.
Forum: Plugins
In reply to: [Woocommerce CSV importer] Display custom fields on product pageSo I am echoing pre-existing values from keys just fine, such as _tax_status. However, when I try to echo a custom field (key), I keep getting nothing. This code is in my theme’s functions.php file. I used phpAdmin to verify that the importer created the custom keys and imported the data into wp_postmeta, and it looks fine. I have tried both hooks with the same results:
( ‘woocommerce_product_meta_start’, ‘variety_details’, 5 )
and
( ‘woocommerce_single_product_summary’, ‘variety_details’, 5 )The website is here: http://indianvarieties.com/product/1857-cud-001/
Under the title, you see printed _tax_status and _featured values, but the values from _composition and strike_type are nil. However, there is data in the database. I can’t figure out what in the world is going on. My only thought is that the custom value created by the importer can’t be echoed for some reason. But can’t longtext fields be echoed? I tried to define and echo a value, too, such as $striketype after I get_post_meta.
add_action( ‘woocommerce_product_meta_start’, ‘variety_details’, 5 );
function variety_details() {
global $product;
// Do not show this on variable products
if ( $product->product_type <> ‘variable’ ) {
echo ‘<div>’;
echo get_post_meta( get_the_ID(), ‘_tax_status’, true );
echo get_post_meta( get_the_ID(), ‘_composition’, true );
echo get_post_meta( get_the_ID(), ‘strike_type’, true );
echo get_post_meta( get_the_ID(), ‘_featured’, true );
echo ‘</div>’;Forum: Plugins
In reply to: [Woocommerce CSV importer] Display custom fields on product pageYeah, I have been trying to fetch product specific data fields by adding code to the theme’s function.php page. I have figured out how to echo text onto each product page this way, but I haven’t figured out how to GET the stored values of the product when I define the $variable prior to echo.
If someone could help us out, I’d be grateful.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Catalogue times out when category addedOkay, so the original issue was solved so I’m marking this such. I sent a detailed message via email.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Catalogue times out when category addedWow, is there a broken loop in the code or something? After making just a couple of queries using the search function, they shut my site down. They said that I need a dedicated server to pull that kind of load, which is $200 a month!
I’m just a dude trying to make a coin catalogue for educational purposes.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Catalogue times out when category addedWOW, doesn’t that look good? The catalogue loads quickly.
Thank y’all so much for all your hard work!!!
LMAO oh wait. My host just terminated my website due to violation of TOS. Apparently, my website was consuming more than 25% of the server’s resources…
TOS/MySQL
Unfortunately, we have been forced to temporarily restrict access to MySQL. Per our terms of service (http://www.hostgator.com/tos) a single hosting account may use no more than 25% of the entire server’s resources. Accounts are typically not actively restricted until they exceed those resource limitations exceptionally
Cpu Time hit 570 > 450
Table rows read hit 1834433932 > 300000000Forum: Plugins
In reply to: [Ultimate Product Catalog] Catalogue times out when category addedI should add that I can’t export the spreadsheet, either. I was getting errors, like the others posted. I installed the order tracking plugin and it got rid of the error, but gave me a new one. Now I get a 405 Not Allowed page when I try to export the file.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Catalogue times out when category addedI have 12 custom fields with 1142 products. 2 categories and 53 subcategories.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Custom Product Page showing black dotsAwesome thanks a million. I have added and rearranged some custom fields. Check out the only coin for which I have photos posted: http://indianvarieties.com/catalogue/?SingleProduct=5615
However, the catalogue is very slow to load and the search takes FOREVER. Or is that because I’m on a slower internet connection?
http://indianvarieties.com/catalogue/
Thanks
Forum: Plugins
In reply to: [Ultimate Product Catalog] Custom Product Page showing black dotsI have made my site visible now. The black dots can be seen here: http://www.indianvarieties.com/catalogue
Now that I have a bunch of them loaded, it takes forever to do a search (using JS and AJAX). It doesn’t seem to matter whether I’m searching all the fields or just the name. Compounding this problem is that by clicking back, one is taken to the front of the catalogue rather than their search result.
Also, the records don’t seem to be sorted in any fashion when the catalogue is first loaded. When I do click on sort by name, it seems to sort what is on the current page and not sort all pages.
If you will notice, I need to change get the ‘Product Name’ label off of my search bar as these are not products for sale. Having this be a custom option would be nice.
THANKS!!!
Forum: Plugins
In reply to: [Ultimate Product Catalog] Column error when uploading productsI was getting errors when trying to upload in CSV, but uploading in Excel format works find. Thanks.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Custom Product Page showing black dotsHey thanks for the response. I thought it could be the theme, so I changed it. However, the black dots remained. So I thought maybe it was importing a symbol for some reason since all my fields are custom and imported from CSV. However, after creating a few catalogs and products manually, the dots appeared on those pages, too.
Thanks a million.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Custom Product Page showing black dots