• Resolved joefatulajr

    (@joefatulajr)


    First time trying this plug-in.

    Created a new Simple Product with a price. Published it.

    Go to Product Data – Calculated Custom Fields

    At the top of the white box is the following “field 1 field 2 add more fields settings conditionals”.

    I would like to calculate the quantity for a product. For example, I have a product that is sold by the square inch and would like the customer to enter the Length and Width in inches to calculate the area to be used for the quantity.

    My guess at how to use this plug-in would be to create a field for the Length and a field for the Width to show the customer the area which either the customer could enter into the quantity for the product to be added to the cart or this plug-in could.

    However, I can’t figure out how to even get a field to start. Dragging field 1 down from the top row to the white blank area gives me a no (circle with diagonal line symbol). There appears to be no examples I can find on the internet for how to use. I don’t find video on YouTube for this either.

    Can someone help or point me to the right place to look. A simple example of creating two entry variables like L and W and calculate the A (Area = L*W) would be great. It would even be greater to show how to put the calculated value for Area into the Quantity when they select this product to add to cart.

    Any help would be greatly appreciated. Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter joefatulajr

    (@joefatulajr)

    On https://digital-stg.com/calculated-custom-fields/ under the Administratory Panel bolded heading it shows Options in the white box to the right. Mine is blank.

    Plugin Author Digital-Stg

    (@digitalstg)

    Hi joefatulajr,

    The option you’re looking for is “Number calculation” option. For example, in the “Field 1” select Option type : “Number Calculation”. This field option can create one or two inputs on the product page with your own calcul formula. Fill the data, then at the bottom of this field option, click on “add new calcul input”. You will then have 2 inputs for L and W. In the “Calcul Formula” in your case, your formula seems to be $user_value * $second_user_value.

    More details : https://digital-stg.com/calculated-custom-fields/ccf-documentation/ccf-settings/

    14.  Number calculation 

    Number input fields (1 or 2) displayed on the product page with your custom calculation formula.

    • Number min value?: minimum number.
    • Number max value: maximum number.
    • Number step value: number interval value.
    • Add new calcul input: add a second number entry field to the product page.
    • Calcul formula:?the formula of the calculation. If the administrator chooses only one number input field for its calculation: $user_value is required in the formula and refers to the value the user will enter. If the administrator chooses two number input fields: $second_user_value also becomes mandatory in the formula and refers to the second value the user will enter on the product page.

    Example here with two inputs : https://ccf-demo-store.digital-stg.com/shop/custom-fields/calculation-field/

    Hope this helps,

    Cheers

    Thread Starter joefatulajr

    (@joefatulajr)

    Thanks for your response….I think I am one step before where I can use what you wrote.

    If I open a product to edit it, go down to Product Data – simple product, on the left side go down to Calculated Custom Fields, the right side of that above a window has the heading of “Field 1, Field 2, Add More Fields, Settings, Conditionals” – I can click on “Add More Fields” and it creates another field (Field 3), I can Click on Settings and it opens the Settings window with max fields number…, I can click on Conditionals and it opens the Conditionals window with if: show:…. However when I click on Field 1 or Field 2 or an added field, nothing happens.

    In the link you provided (https://digital-stg.com/calculated-custom-fields/) under the section entitled “Administrator panel” my matching window is blank and I can’t figure out how to make it look like the link describes. I tried dragging Field 1 or Field 2 to the window vs clicking on it and nothing shows up as well. I never get to an options 1 in the window.

    Any Ideas?

    Plugin Author Digital-Stg

    (@digitalstg)

    Hi joefatulajr,

    Sorry for the delay.

    The plugin should now be functional again.

    Test it out and give us a feedback if you want to.

    Good development.

    Digital STG Team.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.