- Posts: 11
- Thank you received: 0
Wedding Lists
When a user orders any of the products on the list, it has to be marked as ordered or not show up at all.
Please Log in or Create an account to join the conversation.
You can use the Wishlist feature. To activate it, you have to go in Configuration > Features > Wishlist.
Then many menus can be created to display the current wishlist, display the wishlists listing, you can set a wishlist module.
And they can be shared, when a user buy an item from this wishlist, it's written in the wishlist.
Please Log in or Create an account to join the conversation.
I have activated wishlists, but I haven't been able to get them to update after the users order the items,
or to have other users access the list through cart name instead of url.
Update: I have been looking into the code in Views->showcart.php and it seems it is actually updating the orders, but it is only showing a tooltip that isn't very noticeable for the users. But with a bit of php and css editing I should be able to use a line-through on name+price and disable the add to cart option.
Only missing the cart name filter isntead of the url one now.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I don't recommend that, because in database the stock is for one product, if you display as many instance of the product as quantity for the product, then you can't really manage the stock.
If a user bought one item, the system will not know on which instance remove the stock.
Please Log in or Create an account to join the conversation.
I managed to make a dropbox with the maximum option being the quantity of the item still left to buy in the wishlist
I also finished the wishlist filter (by name) page.
What code would I need to add the "Convert Cart To Wishlist" button to a new page (an article page), outside the checkout?
Please Log in or Create an account to join the conversation.
The code needed is:
Please Log in or Create an account to join the conversation.
in the line
I only added this at the start of the code
Please Log in or Create an account to join the conversation.
$params ='';
$params = new HikaParameter($params);
instead of:
$params = $config->get('default_params');
Please Log in or Create an account to join the conversation.
Now I just have one more in last line
Fatal error: Call to undefined method stdClass::displayButton()
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
but the cart_id seems to be incorrect, its not converting my current cart, its just sending me to the wishlist showcarts page, it seems the cart_id is from a newly created cart.
Please Log in or Create an account to join the conversation.
It seems to be working so far but if anything is wrong or missing please correct it
You can change the thread title if you want (since it doesn't mention convert button), I think this might be useful for others too.
Thanks again.
edit: gonna leave here the rest of the code in case someone also wants to filter wishlists by name without users having to send urls to each others
note: this does not take into account the share options of the wishlist, tho that can be added, in this specific case I wanted users to chase the least amount of options possible
Please Log in or Create an account to join the conversation.
And when I login into a user account that already had something in its cart, the cart shows empty and the cart_id for the button is 0.
If I change to other pages the cart module displays correctly but it still doesn't have anythign when I change back to that page until I remove the products in that cart, and add new ones, then it displays correctly.
Please Log in or Create an account to join the conversation.
In the given core, can you try with: $cart = $cartClass->loadCart();
instead of: $cart = $cartClass->initCart();
Please Log in or Create an account to join the conversation.