News:

Support the VirtueMart project and become a member

Main Menu

Virtuemart cart values visualisation in RsForm.

Started by aron1996, July 22, 2020, 09:43:09 AM

Previous topic - Next topic

aron1996

I'd like to ask for help with the problem below. I'd like to show the names and values of the items which is in the shop in Rsform default value field. I've read a lot of article about it but none of them helped. Most of the answers was SQL based, but my cart's content is not from a database, so i can't use it.

jjk

Quote from: aron1996 on July 22, 2020, 09:43:09 AM
Most of the answers was SQL based, but my cart's content is not from a database, so i can't use it.

All VirtueMart products are stored in a mysqli database. But I wonder what kind of product display you want to achieve with RSForms that isn't possible with VirtueMart itself.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

pinochico

Quotemy cart's content is not from a database

Ok, all joomla is from DB... Then what do you have in cart?
And wht do you doing with RSForm?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

GJC Web Design

the cart contents are in the php session  until confirmed .. is that what you mean?

you can get it by the std Joomla session functions or load the VM classes and get it by $cart

    "__vm": {
        "vmcart": "{\"cartProductsData\":[{\"virtuemart_product_id\":161,\"quantity\":1,\"customProductData\":{\"11\":[]}},{\"virtuemart_product_id\":162,\"quantity\":1,\"customProductData\":{\"11\":[]}},{\"virtuemart_product_id\":160,\"quantity\":1,\"customProductData\":{\"11\":[]}}],\"vendorId\":1,\"lastVisitedCategoryId\":0,\"virtuemart_shipmentmethod_id\":\"1\",\"virtuemart_paymentmethod_id\":\"3\",\"automaticSelectedShipment\":false,\"automaticSelectedPayment\":false,\"order_number\":null,\"BT\":{\"virtuemart_user_id\":\"624\",\"virtuemart_userinfo_id\":\"3\",\"address_type\":\"BT\",\"address_type_name\":\"\",\"company\":\"\",\"title\":\"\",\"last_name\":\"Shopper\",\"first_name\":\"Test\",\"middle_name\":\"\",\"phone_1\":\"\",\"phone_2\":\"\",\"fax\":\"\",\"address_1\":\"22 Harry Road\",\"address_2\":\"\",\"city\":\"Perth\",\"virtuemart_state_id\":\"76\",\"virtuemart_country_id\":\"13\",\"zip\":\"6000\",\"agreed\":\"0\",\"tos\":\"0\",\"customer_note\":\"\",\"created_on\":\"2019-01-01 13:32:13\",\"created_by\":\"0\",\"modified_on\":\"2019-01-07 16:39:08\",\"modified_by\":\"621\",\"locked_on\":\"0000-00-00 00:00:00\",\"locked_by\":\"0\",\"name\":\"testshopper\",\"email\":\"testshopper@gjcwebdesign.com\",\"username\":\"testshopper\"},\"ST\":{\"virtuemart_user_id\":\"624\",\"virtuemart_userinfo_id\":\"12\",\"address_type\":\"ST\",\"address_type_name\":\"Address Nicknam\",\"company\":\"\",\"title\":null,\"last_name\":\"3131\",\"first_name\":\"1213\",\"middle_name\":\"\",\"phone_1\":\"\",\"phone_2\":\"\",\"fax\":\"\",\"address_1\":\"12121\",\"address_2\":\"\",\"city\":\"campsie\",\"virtuemart_state_id\":\"70\",\"virtuemart_country_id\":\"13\",\"zip\":\"2650\",\"agreed\":\"0\",\"tos\":\"0\",\"customer_note\":\"\",\"created_on\":\"2020-01-16 05:53:15\",\"created_by\":\"624\",\"modified_on\":\"2020-05-04 10:05:51\",\"modified_by\":\"624\",\"locked_on\":\"0000-00-00 00:00:00\",\"locked_by\":\"0\"},\"cartfields\":{\"customer_note\":\"\",\"tos\":\"0\"},\"couponCode\":\"\",\"_triesValidateCoupon\":[],\"order_language\":\"en-GB\",\"pricesCurrency\":\"9\",\"paymentCurrency\":\"9\",\"_guest\":0,\"_inCheckOut\":false,\"_inConfirm\":false,\"_redirected\":false,\"_dataValidated\":false,\"_confirmDone\":false,\"STsameAsBT\":0,\"selected_shipto\":\"12\",\"_fromCart\":false,\"layout\":\"default\",\"layoutPath\":\"\",\"virtuemart_cart_id\":\"3\",\"orderdoneHtml\":false,\"virtuemart_order_id\":false,\"byDefaultBT\":[],\"byDefaultST\":{\"address_type_name\":1},\"cartLoaded\":[true,true,true]}"
    }
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation