• Resolved qevs

    (@qevs)


    Hello,

    I have looked everywhere in my database and can’t find the products I create? Where are they stored at?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi.

    There are stored as normal WP posts (since orders are actually custom post type). So you can use standard WP PHP commands that work with posts to get data stored in orders.

    Thread Starter qevs

    (@qevs)

    Oh that seems messy. Wouldn’t it be more secure and cleaner if it was in a separate database table?

    Exactly my point here:
    https://www.ads-software.com/support/topic/fraudulent-charges-site-attacked/

    How am I suppose to retrieve the product price from the database and confirm that it is the correct price being charged.

    • This reply was modified 4 years, 8 months ago by qevs.
    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Oh that seems messy. Wouldn’t it be more secure and cleaner if it was in a separate database table?

    No difference in terms of security here. WP posts are stored in database tables as well, so why create more tables?

    How am I suppose to retrieve the product price from the database and confirm that it is the correct price being charged.

    You can do this via standard WP functions that work with posts or via functions that the plugin provides.

    Is there anything specific you want to achieve?

    Thread Starter qevs

    (@qevs)

    Is there anything specific you want to achieve?

    Yes how do I retrieve only the price data of a product I created?

    Thread Starter qevs

    (@qevs)

    Can someone from the plugin support answer?

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    $price = get_post_meta( $product_id, 'asp_product_price', true );

    $product_id should be ID of the product you want to get price for.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Where are the products data stored?’ is closed to new replies.