Forum Replies Created
-
AuthorPosts
-
June 30, 2014 at 9:11 am in reply to: Variation ramaining 0 = auto hide or display Sold out text for single variation #63998rob.marrasMember
Hi
Yes I do use that as I wrote above.
In the plugin UI i insert my variation and for each variation I add an inventory. I can see that after buying all the variation stock, in the admin panel the variation says 0 in stock but the variation it is still shown in the web site as a choice.
On my page I call the add to cart and variation like this: [wp_eStore_add_to_cart id=8]
Am I doing something wrong?
June 29, 2014 at 9:57 pm in reply to: Variation ramaining 0 = auto hide or display Sold out text for single variation #63996rob.marrasMemberI can see that in the checkout page, if I select a product variation which has been sold out, i get this error message: “There are currently only 0 Red shoe (36) items in stock!” – but the “buy now” button it is still there as well as all the coupon and the payment method dropdown. We should not get to the checkout page if the variation product is sold out. We should simply not be able to add it to the cart from the product page, or at least do not show all those things in the checkout such as buy now button etc.
How do i do that? (my dirty solution would be to use jQuery to remove those elements if the text says that in the checkout, but that’s very dirty.) Otherwise I am left with creating each single different product for each variation and call different cart within a single product, basically looping with php all “product pages” and only displaying certain information with a “add to cart” next to each “variation” so that if the product is sold out instead of add to cart it displays “sold out” button. But this is terrible really, I should simply auto hide the size which is sold out or not be able to select it without to go to the checkout page and have a disapointing message there for the user
Thank you
rob.marrasMemberThe same issue applies when we do manual checkout. I can only define 1 custom url on the pluginsettings as per the custom checkout page, and the auto redirect doesn’t take into consideration language. Any idea?
rob.marrasMemberOk, the issue is with the auto redirection, so unless you have a solution, I will need to ad cart menu item to the top nav, because this way I will have a different menu top nav based on the lang site, therefore if I am in a product page in Italian, once I add the good to the cart, user will be able to hit “go to checkout” which is in italian
rob.marrasMemberOk the solution I have found is to simply use the_content(), and insert the cart via your plugin icon on the ditor. The create custom fields to upload photos, this way i can lpace the_content(); [the cart button with variation] anywhere in my template and load the “real content”, text and images via custom fields somewhere else in the template.
May 13, 2014 at 8:30 pm in reply to: Get checkout thumbnail from post thumbnail or custom field (using ACF)? #62940rob.marrasMemberI would like not to rely on copying a link into the thumbnail URL input field in the admin product of your plugin. I would like to get that thumbnail from the actual product page post_thumbnail
May 13, 2014 at 5:38 pm in reply to: Get checkout thumbnail from post thumbnail or custom field (using ACF)? #62938rob.marrasMemberHi, any help on this?
Thank you
rob.marrasMemberBingo!
The file I needed to edit was: eStore-extra-shortcodes/shortcode_include.php
That’s where you generate the table with a thumbnail, I have now changed its markup to match my own html framework with classes. Thanks tho
rob.marrasMemberI don’t understand where you generate the table when using [wp_eStore_cart_with_thumbnail], i think i really looked at all source code. Not sure what I am missing
May 13, 2014 at 1:55 pm in reply to: Get checkout thumbnail from post thumbnail or custom field (using ACF)? #62937rob.marrasMemberYes I am aware of that.
What I mean is when we use: [wp_eStore_cart_with_thumbnail] with the extra shortcodes.
I understand in the product page editor we can insert the URL of the Thumb, I was wondering if that thumbnail was something we could get from the product page itself where we use that shortcode.
e.g.
Product page:
1: create the product
2: create a page and add images to the page and a post-thumbnail
3: insert [wp_eStore_add_to_cart id=1]
4: Pubblish
Custom checkout page
1: create a page
2: insert [wp_eStore_cart_with_thumbnail]
3: Publish
Result I would like to have:
Custom checkout page displays the product in the cart wityh a thumbnail. The thumbnail is taken from the post_thumbnail of the product page (or a custom field in the product page) instead of having to copy and paste the thumb url and place it in the product admin of your plugin.
Literally to be able to auto generate the checkout product thumbnail dynamically from the product page.
rob.marrasMemberHi
basically the <table> (for example) in the checkout I would like it to be <div class=”table”><table class=”table table-bordered”>…</table></div>
I literally have gone through all the files and I have managed to change the markup but not for the checkout table with the thumbnail, but I am actually going to change all the markup the plugin outputs it, the reason why is because i am using twitter bootstrap and I need specific mark.
The main issue I am having to be honest is to find the file that produces the table when using [wp_eStore_cart_with_thumbnail]
I did change the <table> in extra shortcodes but I still can’t get it right, I just can’t find it, I have searched everywhere, even by looking at this class “estore-cart-wrapper-3” but I cannot find it…while for all other shortcodes with no thumbnail i managed to change the html markup..
May 12, 2014 at 12:13 am in reply to: how to use dynamic template function to retrieve a product id? #62884rob.marrasMemberOK i missed the function I had to insert in function.php. Now it is resolved. thanks.
Let me get this hack right, basically this trick will load the eStore translation on the actual live web site, but the admin plugin will remain in english, right?
May 11, 2014 at 11:32 pm in reply to: how to use dynamic template function to retrieve a product id? #62883rob.marrasMemberThanks for the fast reply.
Q 1: basically I am using bootstrap and I want to have 100% control over the html, in the “simple” I literally rewritten all the html the plugin was outputting, since eStore has more files I just wanted a quick reply on which file I should be putting my hands to change the html. e.g. a product page/checkout page, use eStore html, i want to change that markup.
q 2: I had a look just before at that forum post, when I do what it says, i get this (using latest wp 3.9.1):
Warning: include_once(/home/marianna/public_html/wp-admin) [function.include-once]: failed to open stream: Success in /home/***/public_html/wp-content/plugins/wp-cart-for-digital-products/wp_eStore1.php on line 60
Warning: include_once() [function.include]: Failed opening ” for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/***/public_html/wp-content/plugins/wp-cart-for-digital-products/wp_eStore1.php on line 60
Warning: Cannot modify header information – headers already sent by (output started at /home/marianna/public_html/wp-content/plugins/wp-cart-for-digital-products/wp_eStore1.php:60) in /home/***/public_html/wp-includes/pluggable.php on line 1121
May 11, 2014 at 10:57 pm in reply to: how to use dynamic template function to retrieve a product id? #62881rob.marrasMemberI see, thanks. Two other questions:
1: Which file can I edit to change the html output?
2: is there a function i can use to send thank you emails in other languages? For the “simple” plugin i was using WPML and in the cart php I used:
if (ICL_LANGUAGE_CODE==’en’) {
$totalTitle.=”Total”;
} elseif (ICL_LANGUAGE_CODE==’it’) {
$totalTitle.=”Totale”;
}
And I did that for any label for the products, is there any way somewhere in the files i could use the same hack to be able to send an email in one lang or the other?
Thanks
-
AuthorPosts