/    Sign up×
Community /Pin to ProfileBookmark

multiple add to cart buttons

Hi

I wonder if anyone can help point me in the right direction please

I am building a booking system using opencart and so far so good but on the product page which is the class, I have put a book now button in that pops up when clicked on and within that, I want to show available days and times and have multiple add to cart buttons next to each available date and time

At the mo,I have only been able to get one add to cart button but can’t work out how to get multiple ones next to each date and time

The classes available will be eventually be added from the backend but for now I did it myself within the coding as seen below to until can get the multiple add to cart buttons sorted

my code looks like the following at the mo

[code=html]
<div id=”ex1″ style=”display:none;”>
<p>

<table>
<tr>
<th>Date</th>
<th>Time</th>
<th>Action</th>
</tr>

<tr>
<td>Date 1</td>
<td>13:00 – 14:00</td>
<td><input type=”button” value=”<?php echo $button_cart; ?>” id=”button-cart” class=”button” /></td>
</tr>
</table>
[/code]

Thank you in advance

Ian

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ianhaneyauthorFeb 10.2015 — Sorry new question, thinking of new ways around it

under options, I am using the date so it uses datepicker and I have disabled past dates but is there a way to disable specific days for each product?

for example I created a product called Class 1 and the available days for that is Monday and Friday

If I create a second product called Class 2, the available days for that is Tuesday and Thursday

Is that possible to do using the datepicker on the product.tpl file?

Sorry just thinking of new ways around it
×

Success!

Help @ianhaney spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...