24/7 Support: 800.608.6482

Developer Docs

Try our new AI assistant by clicking the chat icon in the lower right corner.

ProductVariantPricing_Update

MvDo Function, MVT, Miva Merchant 9+, Engine v5.22+

Tag / Description

<mvt:do file="g.Module_Library_DB" name="l.success" value="ProductVariantPricing_Update(productvariantpricing var)" />

ProductVariantPricing_Update

This function updates the variant pricing.

Request Parameters

store_code Type:
String
Title:
Store Code
Store code to run the function against. Found in the Miva Admin under Settings > Store Details
function Type:
String
Title:
Product Variant Pricing Update
The name of the function being executed
product_id Type:
Number
Title:
Product ID
The id number of the product
variant_id Type:
Number
Title:
Variant ID
The variant id of the product
method Type:
Number/String
Title:
Variant Pricing Method
0=master 1=specific 2=sum
price Type:
Number
Title:
Variant Price
[optional] The variant price
cost Type:
Number
Title:
Variant Cost
[optional] The variant cost
weight Type:
Number
Title:
Variant weight
[optional] The weight of the variant

Response Parameters

success Type:
Boolean
Title:
Status Response
Boolean value indicating if the api request was successful
product_id Type:
Number
Title:
Product ID
The product id for the variant
variant_id Type:
Number
Title:
Variant ID
The new variant id

Example Request

Example Response

Parameters

Return Values

Examples

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2024 Miva®, Miva Merchant®, MivaPay®, MivaCon®, Camp Miva®, Miva Connect®, Miva, Inc. All Rights Reserved.