Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

To Smart Content - Selects data, but cant display
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: To Smart Content - Selects data, but cant display
#54796
To Smart Content - Selects data, but cant display 9 Years, 6 Months ago Karma: 0
Hi folks... I can get this to work, but I dont think I am doing it properly (see the attached image for the SQL Data and the screen result).

I have the following select in the "Data" configuration area of the component:

SELECT
T1.virtuemart_product_id , T1.product_name , T1.product_s_desc , T1.product_desc , T2.product_price
FROM `wrf_virtuemart_products_en_gb` AS T1
INNER JOIN `wrf_virtuemart_product_prices` AS T2
ON T1.virtuemart_product_id = T2.virtuemart_product_id
ORDER BY T1.product_s_desc DESC


and in the columns table below I have tried to use the "T1. & the T2. prefix for the column names.
The data records select OK, but just dont display.

If I change the Select code to use the 'AS' construct (eg Select T1.product_description AS Decscription.. etc"), then everything works absolutely OK.

Can you tell me where I am going wrong????

Thanks,
Mike
File Attachment:
File Name: ari_smart_content_screens.zip
File Size: 37919
Last Edit: 2015/06/08 01:51 By quigley595.Reason: pics
The administrator has disabled public write access.
 
#54804
Re:To Smart Content - Selects data, but cant display 9 Years, 6 Months ago Karma: 760
Hello,

Use the following SQL query:

Code:


SELECT 
  T1.virtuemart_product_id AS virtuemart_product_id, 
  product_name, 
  product_s_desc, 
  product_desc, 
  product_price 
FROM 
  `#__virtuemart_products_en_gb` AS T1 INNER JOIN `#__virtuemart_product_prices` AS T2
    ON T1.virtuemart_product_id = T2.virtuemart_product_id 
ORDER BY 
  T1.product_s_desc DESC



or

Code:


SELECT 
  T1.virtuemart_product_id AS virtuemart_product_id, 
  T1.product_name AS product_name, 
  T1.product_s_desc AS product_s_desc, 
  T1.product_desc AS product_desc, 
  T2.product_price AS product_price
FROM 
  `#__virtuemart_products_en_gb` AS T1 INNER JOIN `#__virtuemart_product_prices` AS T2
    ON T1.virtuemart_product_id = T2.virtuemart_product_id 
ORDER BY 
  T1.product_s_desc DESC



Regards,
ARI Soft
The administrator has disabled public write access.
 
#54809
Re:To Smart Content - Selects data, but cant display 9 Years, 6 Months ago Karma: 0
Thanks a amillion for your reply.... you have been a great help, and I truly appreciate i.


thanks again,
Mike
The administrator has disabled public write access.
 
Go to topPage: 1