Surcharge Update QA Testing
Step 1: Open up the Theme editor
https://shop-gemlux.myshopify.com/admin/themes/131703963802/editor
Step 2: Verify that a surcharge product has been added to the global settings under theme settings -> Surcharge Settings -> Surcharge Product
&#xNAN;What happens if surcharge isn’t present? A surcharge will not be added to the cart when landing on the cart page.
Step 3: Open up the preview link ->
https://gemlux.com/?_ab=0&_fd=0&_sc=1&preview_theme_id=131703963802
Step 4: Then click on this script preview link
https://shop-gemlux.myshopify.com/admin/scripts/preview?script_id=225542298
Step 5: Add a product to the cart. Click the view cart button to see the new cart. When you land on the cart page, the code should run and automatically add a surcharge to the cart.
Step 6: Verify that the surcharge was added / Surcharge is set to 0.00 for retail customers. Surcharge is set to a different value for logged in customers. If the logged in customer has the tag “R2 - Online Price” they will also avoid the surcharge.
The surcharge is calculated as follows: SURCHARGE_AMOUNT = ORDER_TOTAL_WITHOUT_SURCHARGE_ADDED * PERCENTAGE_MULTIPLIER
Where PERCENTAGE_MULTIPLIER is 0.105 (10.5%)
An example:
CART
2x Item @$99.83 / product -> $199.66 Total
199.66 * 0.105 = $20.96
Surcharge’s price should be showing $20.96 in this example. ( again, only if the user is logged into an account that doesn’t have the “R2 - Online Price” tag
This should be the case on both the cart page and the checkout page