Suoritettu

Cart with Variations

This is the situation:

I have a music selling website developed with Smarty PHP by Agriya. The Buyer choose his music and "add to cart". In the PHP it is calling the music_id and goes on, get the price, title.....and everything it will need.

The future Situation should be that I want to sell 4 licenses for every music. So you have to develop only 2, the rest I will do on my own because I have a low budget for that.

Here is an example page how it should work.

[url removed, login to view]

If you click on +, four licenses will be open. It is only possible to get one of these licenses into cart. Try out. Like that it should work in the future in my cart.

You can work here with buttons for easier way. A modal window i can do later on my own. You have only to develop the license function into cart and delete function.

In the SQL Database there is now the row "music_price". I will integrate the row music_price_2

License1=>music_price

License2=>music_price_2

I have developed a little bit on my own, but I am not so good in PHP and had some Problems with commands like in_array and is_array. So I can help on some ways to get some variables or something like that. This is the way of files.

1. It is beginning in the .tpl file. The Button "Add to Cart"

=>onclick the music_id will be transmitted to javascript. In my trials, I have transmitted the license as "1" or "2" to javascript.

2. This is the javascript for that:

function updateMusicsCartCount(music_id,license)

{

var url = cfg_site_url+'music/[url removed, login to view]';

var pars = '?music_id='+music_id+'&&license='+license;

var path = url+pars;

new prototype_ajax(path,'updateSuccess');

}

So I have transmitted the music_id AND the license to another file.

3. There will be checked if the music_id is already in cart. If not, it will be done. Here is the Problem that it has to be checked if the music_id with the choosed license is already in cart.

4. Then it goes to the cart.php. Here is the actual situation that the price comes for the music_id from sql query and will be used in the whole script as $row['music_price']. This is very important, that it will work with that, neither if license 1 or license 2 choosed.

I had done that like that.

if license == '1' => then I have query the music_price from table

if license == '2' => then I have query the music_price_2 AS music_price from table

I can modify step 1+2 if you want. Default will be, that I will let everything like it is made by the developer agriya.

So...summary:

- You have to modify only 2 licenses for each music

- it has to work that music will be get into cart with the license it is choosed.

- overwrite/unset old license if new one will be choosed

- every price must work in the end as $row['music_price']; in [url removed, login to view]

- delete of music from cart has to work correctly

It is not urgent. So you have time enough to do that, due to my low budget.

Taidot: eCommerce, HTML, Ostoskärryt, verkkosivujen suunnittelu

Näytä lisää: step on how to develop website, modal window design, how do i get my website developed, how can one develop his website, how can i get the good php developer, how can i get my website developed, how can i develop my own website, button onclick php, list shops online, names shops online, shops online xml, online shop erstellen, window application sql, modification shops online, online shops caps, internationalplatinumcard online shops, shirt online shops, asp online shops, irish shops online, online shops aspnet

Tietoa työnantajasta:
( 1 arvostelu ) Mönchengladbach, Germany

Projektin tunnus: #10932232

Myönnetty käyttäjälle:

shijudasan

Hi I am a php full stack developer . I have gone thru ur description and I can do this for u for the price I mentioned. But I will finish the project soon. I have got a good picture of your issue. Seems like a 1 to 2 d Lisää

€111 EUR 10 päivässä
(5 Arvostelua)
4.0

10 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

toinnisfree

I have read your project details, and I am interested in offering my services. I provide 100% satisfaction guaranteed on all my work. Milestone is required to begin; to be released when the job has been satisfactor Lisää

€220 EUR 4 päivässä
(252 arvostelua)
7.3
VnBestSolutions

Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Lo Lisää

€211 EUR 3 päivässä
(131 arvostelua)
6.7
websolutions008

Hi, This is Sherly We could build a website. Payment could be released after you are completely satisfied with our output. our recent online store wordpress site in woocommerce. [login to view URL] https:// Lisää

€266 EUR 10 päivässä
(59 arvostelua)
6.1
softandrew

Hi , I have seen your posting carefully . I am expert in this field . i can do this project with 100% satisfaction and quality work . Please discuss this project so that i can share my previous project with you . Lisää

€155 EUR 3 päivässä
(42 arvostelua)
5.5
alidelhvi

Hi.. I have read and understood your requirement and can complete this project for you. Let me know if you want to start. Regards. Ali

€150 EUR 7 päivässä
(5 arvostelua)
3.1
wesoft20

i have gone through your requirement we done similar kind of job before looking forward your earliest Reply on this for a project discussion Awaiting for your earliest reply

€155 EUR 3 päivässä
(0 arvostelua)
0.0
celinajelly345

Dear client WE ARE NOT TAKING ADVANCED, YOU CAN PAY AS PER WORK # We are ready to discuss the project with you and based on that move forward My Services: - iPhone applications design & deve Lisää

€155 EUR 3 päivässä
(0 arvostelua)
0.0
€222 EUR 10 päivässä
(0 arvostelua)
0.0
€30 EUR 1 päivässä
(0 arvostelua)
0.0