How to make custom cart link share (opencart) - plugins

Hello how to make Opencart Cart , shareable ? I mean someone choose products and he can share the cart with someone ?
Something like --> http://nikem-bg.net/cart/57887p1rf.html (i am sorry for the language) I pick some item and i can share and send with anyone ?

Related

How do I add a discount code to my cart and send it to paypal checkout?

I'm trying to add a discount code field to my website in big cartel. I've set the available discount codes in bigcartel, but no discount field is shown when checking out. This is because I send users to PayPal to checkout. Is there a way to add a field for the discount code in my cart, then send that discount to paypal on checkout?
What I really need is an example of how to make an <input/> for the discount code such that it gets processed on form submission. I'm new to big cartel, and as far as I can tell I don't have the ability to change the code for how the cart form is processed.
I've been digging through bigcartel and PayPal's docs for a while now with no luck, and am hoping someone on here knows the solution, but any help would be appreciated.
You can add a discount field to the Cart page by using discount_code_input:
Enter discount: {{ cart.discount | discount_code_input }}
This is also documented here: https://help.bigcartel.com/developers/themes/#discountcodeinputdiscount-id-classname
Additionally there's a number of different variables used to check whether discounts are enabled, the amount, the code that was entered, etc: https://help.bigcartel.com/developers/themes/#variables-1
And finally, every Big Cartel theme is on GitHub, so you can download the theme code, run it locally with Dugway, and get a better idea of how our themes work. Here's Lunch Break for example: https://github.com/bigcartel-themes/lunch-break/blob/master/source/cart.html

Generating a dynamic Buy Now button

I am currently speccing out a custom auction plugin for WordPress. One thing I would like to do for each item is to generate a dynamic Buy Now link that will redirect to a PayPal screen with the item name and final price.
From what I can see, the only way to generate one of these buttons is to go to the form that generates the buttons for you. Is there a js file that I can use to generate these buttons from a Wordpress admin area? If so, can someone please provide a link so that I can begin reading up on the documentation?
Thank you
There are several examples of how to create a "pay now" button on stackoverflow (with simple HTML form). I would rather not use the "insecure" forms.
For including it in Wordpress you need to create a PHP Script (Plugin) that creates you the button, either with a library or "by hand".
The second thing I would recommend is to give PayPal an URL they should call after a payment status change (IPN). Some libraries (as the one above) can help you with that.

How to display total number of items new to view shopping cart?

So in a nut shell I have created a simple e commerce website using paypal add to cart buttons with no problems - Its only now I should of considered using an opencart source PHP/Mysql, but it's to late now as it's pretty much done. My question is, is how can I display the total number of items next to view cart? something like this (1) is there a simple way to do this? I'm really struggling to find an answer, is there a small piece of code I need to change in the view cart form? my website is here, there is no other problems. www.diva-wear.co.uk
Thanks.
There is not going to be anything you can do with the button code itself, but you can track what your buyer is adding to the cart. If you enable and use PHP sessions, this can be as easy as storing the count of items in a session variable that you display next to the cart button.
You can run something similar to this when someone adds an item to their cart.
<?php
session_start();
$_SESSION['items_count'] = $_SESSION['items_count'] + 1;

Woocommerce how to change the URL before proceeding to checkout

I need to capture some information for a particular product category.
I am thinking is there a way I can change the proceed to checkout link to go to a custom URL (which will be a booking form with an action of going to the checkout page on submit) if the product category is in the cart.
I am a developer but in Java so do not know the structure and hooks very well but am sure I can get it together if
a) it is possible.
B) someone can help me which files to modify.
Thanks guys
I have fixed this by adding a filter on checkout:
add_filter('woocommerce_get_checkout_url', 'booking_redirect_checkout');

How to user can create its own gift hamper and can add product to that hamper

I am developing a new concept magento store with a new functionality of creating gift hamper..i am using bundle product in this..
Now i want to create a option on frontend say "Create hamper".in this option user can create a hamper/basket with any name using textbox..after creating this hamper user can add products in cart under its gift hamper..
and also on cart page i want to show seprate hamper with its product.
Can somebody help me out in this new concept.
Thanks in advance..
Hello Finally i find out the sollution, its not the exact sollution but very helpful for my new concept,
i can get some help by using & modifying these extension..
have a look on below extension & its respective demo.
http://51328012.demo.aitoc.com/magento-red-furniture-set.html
http://www.magebuzz.com/shopping-list.html
http://www.magentocommerce.com/magento-connect/shopping-list.html
http://www.aitoc.com/en/magentomods_gift_registry.html
http://www.aitoc.com/en/magentomods_recurring_purchase_assistant.html#demo