scottl31
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingHi Mikey,
Had to get on to something else for a bit, but now I’m back to this.
So in starting to get this going, I tried just making a link like:
https://yourgroovydomain.com/?add-to-cart=123
And it of course loads the item in the cart. But the problem is that the site thinks that “?add-to-cart=123” is a page and tries to go there, and since there is no such page, it just goes to the home page. I was using a 404 to homepage plugin so I disabled it, but it still just goes to the home page.
Is there a way to click this link and keep the user on the page that it was clicked on?
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingAre you saying that IDs are site/system wide thing which all the numbers are random and not sort of confined to specific ranges depending on if it’s a product or a post or whatever?
Ok, but if the IDs are already set for every book and I am exporting them to get that ID. When importing, I’d actually be reapplying them to the books they already belong to. That is except if I have a new book. So I would like to try defining in advance in this way.
My only problem is I don’t know where the field is in the Woocommerce product options set up so I can place my import token there. Again, I am using WP All Import with the WooCommerce Add-On Pro
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingHi Mikey,
Do you have a response to my last question?
thanks,
ScottForum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingIt sort of makes sense. A lot of extra work.
But I’m not clear how to do the export you mention. And what would I end up with? What I’d need is a column of IDs I could copy/add to my database.
Can you tell me how I could define the IDs in advance? There would be no danger of an ID already existing because every book would of course have a unique ID, as defined in the import database. Also, even when we add only one book to the site, all books are imported again anyway, of course along with their unique IDs.
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingI don’t see how the exporting would work. Each ID has to be associated with a product, so how would I associate the exported IDs with the proper products? I mean, there would need to be a field for them to go in my import database.
Is there a field in WC or a plugin that would allow defining the ID in advance? Funny, when I set up this database, I built in a product ID field and have been keeping it filled all along. But I have never found a place in WC to use it.
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingIt won’t work with the product ID because there is no product ID when I create the product and the listing.
All our product and listing data, including the sku, is in a database. We use WP All Import to import that database, which creates the product pages (not visible on site) and the custom post listing with the short code button in place.
Will this work using the sku?
My boss is starting to get impatient with me on this. I hope to find a solution soon.
Semi related side question: Is there a way to change the wording of the system wide “Add to cart” button and the “Read more” button that shows when an item is out of stock?
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingOK, I guess it’s worth trying.
Do you have a link to the specific instructions for this?
Only thing is, doesn’t this use the product ID? If so it won’t work. But if it can use the sku, then it will work for us.
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingI actually thought of doing that link thing, but I didn’t think it would place the check mark and “View cart” link next to it after being clicked like we have now with the short code. Does it do that?
If not, we don’t want people taken to the cart after clicking, so we need some way to tell the person that the item has been added to the cart. Is there a way with this?
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingWell, placing the product page the way you say will show the page won’t it? We can’t show the page because it is severely malformed and unusable due to the theme being incompatible with WC.
Finding another theme is not an option at the moment.
So are you saying I’ve reached a dead end and there is nothing in the existing code that I can do to get my result?
Thanks.
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingEmbed the whole product page? Do you mean like in a frame with only the drop down button showing. Seems like a crazy way.
So there’s no way to get that drop down menu in a short code like I use?
I know it would be best to use the actual product page, but our design and theme were not woocommerce compatible. We got the design we liked with using the short code above. The product page is completely broken and looks horrible. Actually completely unusable.
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingWow, that difficult huh?
Can’t do anything custom at the moment. What a bummer.
I wasn’t sure if variable or grouped would be better.
But is there a way to get the drop down needed with a short code like I am using on my custom post?
Forum: Plugins
In reply to: [WooCommerce] Custom Post “Add to cart” Buttons editingHmm.. not exactly sure what to do with that or where to put it.
Are you saying that it should be as simple as adding a parameter to my shortcode like button_text=”Buy now” or something like that?
If so, that’s exactly what I want. Any idea how I would do this?
Thanks!
Forum: Plugins
In reply to: [WooCommerce] United States at top of country pop up list?I’m comfortable enough with code, but in this case, it just didn’t seem obvious what to change and where to put all of it.
Forum: Plugins
In reply to: [WooCommerce] Item added to cart confirmation not showing anymore.Caleb,
It sort of works. Don’t mean to complain, but the first one just changes the text on ALL buttons on the site while leaving their functionality the same.I was hoping to have a change ONLY to the “read more” button that you get when the item is out of stock. That’s what the code I pasted above used to do. It just put the words “Not for sale” in place of the button and it was not clickable.
Is there any chance that code could be updated? I was using it in 2.2 and I’m guessing that a version since then broke it.
Thanks,
ScottForum: Plugins
In reply to: [WooCommerce] United States at top of country pop up list?Caleb,
I’m pretty technical and not really afraid of any kind of code.
But this looks like a lot of stuff. If you could give me an idea of what needs to be edited and where to put all this, I’d appreciate it.
Thanks!
Scott