TOPIC:

Ordering form with select list and quantity box 1 week 3 days ago #254147

  • Topic Author
  • gkukovacec
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 35
  • Thanks: 0
Hello,

I need to create an ordering form for chicken parts, here is the link of the example:

online.trznice-zg.hr/bastalec-promet-d-o-o/10?oid=40

I need to display all chicken parts so when a costumer clicks on a part that he wants, the part should display down below, and there must be a box for a quantity of a particular part. Have you any idea how to accomplish that?

Best regards,
M

Please Log in or Create an account to join the conversation.

Ordering form with select list and quantity box 1 week 3 days ago #254162

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3733
  • Karma: 3
  • Thanks: 302
Hi,

here is an example:

File Attachment:

File Name: onlinetrgovina.zip
File Size:13 KB

Please download->unzip and install it (BF->Configuration->Package Installer)

Regards,
Tihana
Attachments:

Please Log in or Create an account to join the conversation.

Ordering form with select list and quantity box 1 week 1 day ago #254286

  • Topic Author
  • gkukovacec
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 35
  • Thanks: 0
Hm, that wasn't exactly what I wanted, I have found something I need on this link:

crosstec.org/en/forums/6-feature-request....html?start=6#254098

I need an option to add new row If costumer wants another product, which I found here, but I don't know how to connect those 2 forms:

crosstec.org/en/downloads/free/form-apps...ows-dynamically.html

How should I connect those 2 forms into one? I'm sending screenshot how should that look... I tried to copy literally everything from "Add new row" to "Order from" but it doesn't work.

Best regards,
M

Please Log in or Create an account to join the conversation.

Ordering form with select list and quantity box 1 week 1 day ago #254288

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3733
  • Karma: 3
  • Thanks: 302
Hi,

ok, there I posted example for customer so you can test it.

Unfortunately you can't load another form into the current form (you can't merge two forms into one). I suggest a harder way, to make a new form that contains all of these two forms

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Ordering form with select list and quantity box 1 week 1 day ago #254343

  • Topic Author
  • gkukovacec
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 35
  • Thanks: 0
Okay I made a new form that contains these 2 forms, it works but, but I have another question about a shop I downloaded from that link:

crosstec.org/en/forums/6-feature-request....html?start=6#254098

It is made just to add up only 2 items to total price, but I need to made it for 30 items.

There is the script for total price:


function ff_totalprice_action(element, action)
{
ff_getElementByName('totalprice').value=0;
{
var total=(Number(ff_getElementByName('products1').value)*Number(ff_getElementByName('qproducts1').value))+
(Number(ff_getElementByName('products2').value)*Number(ff_getElementByName('qproducts2').value));
ff_getElementByName('totalprice').value=total.toFixed(2) + " kn";
}
} // ff_totalprice_action


Is there any easier way for that or I need to copy this for 30 times (Number(ff_getElementByName('products1').value)*Number(ff_getElementByName('qproducts1').value))+ with products3, products4, products5 and so on....?


Best regards,
M

Please Log in or Create an account to join the conversation.

Ordering form with select list and quantity box 1 week 1 day ago #254346

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3733
  • Karma: 3
  • Thanks: 302
Hi,

instead of actionscript you can add the code in form->Advanced->More options->Scripts->Initialization Script->check Custom:
function ff_FORMNAME_init()
{
setInterval('calc()', 500);
} // ff_FORMNAME_init

function calc() {
var total=(Number(ff_getElementByName('products1').value)*Number(ff_getElementByName('qproducts1').value))+
(Number(ff_getElementByName('products2').value)*Number(ff_getElementByName('qproducts2').value)) +
(Number(ff_getElementByName('products3').value)*Number(ff_getElementByName('qproducts3').value)) +
(Number(ff_getElementByName('products4').value)*Number(ff_getElementByName('qproducts4').value));
ff_getElementByName('totalprice').value=total.toFixed(2) + " kn";
}

Here you can add the code for 30products
Please replace FORMNAME with name of your form(not title)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Time to create page: 0.050 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!