sales text
This commit is contained in:
@@ -87,6 +87,7 @@ CREATE TABLE products (
|
||||
id SERIAL,
|
||||
product_id VARCHAR(25) UNIQUE REFERENCES products(product_id),
|
||||
details TEXT,
|
||||
sale_text TEXT,
|
||||
added timestamp without time zone DEFAULT now()
|
||||
);
|
||||
ALTER TABLE ONLY products_details
|
||||
@@ -94,6 +95,7 @@ CREATE TABLE products (
|
||||
|
||||
ALTER TABLE products_details OWNER TO merms_panel;
|
||||
|
||||
--- ALTER TABLE products_details ADD sale_text TEXT;
|
||||
|
||||
INSERT INTO products_details (product_id,details) VALUES(
|
||||
'A000002',
|
||||
@@ -118,6 +120,13 @@ A Professional Website service utilizing AI tools offers a comprehensive solutio
|
||||
'
|
||||
);
|
||||
|
||||
UPDATE products_details SET sale_text =
|
||||
'<br>
|
||||
<hr>
|
||||
Get started for free for 6 months, and add features to your product as needed. cancel anytime
|
||||
<hr>
|
||||
<br>';
|
||||
|
||||
|
||||
|
||||
CREATE TABLE members_products (
|
||||
|
||||
@@ -142,6 +142,8 @@ def myproduct_dash():
|
||||
response = MyProductsService.process_request(data)
|
||||
return response
|
||||
|
||||
# /panel/myproduct/subscription
|
||||
|
||||
# /panel/account/calendar
|
||||
@api.route("/panel/account/calendar", methods=["POST"])
|
||||
def mycalendar_dash():
|
||||
|
||||
@@ -60,6 +60,7 @@ class MyProductsService(BaseService):
|
||||
"myproudct": {
|
||||
"banner": product_data.banner,
|
||||
"description": product_description.details,
|
||||
"sale_text" : product_description.sale_text,
|
||||
"internal_url": "",
|
||||
"price_text": "90 days free and 3.95/Month",
|
||||
"product_id": product_data.product_id,
|
||||
|
||||
@@ -24,7 +24,8 @@ class ProductsDetails(db.Model):
|
||||
)
|
||||
|
||||
product_id = db.Column(db.String(25), nullable=False)
|
||||
details = db.Column(db.String(5000), nullable=False)
|
||||
details = db.Column(db.String(15000), nullable=False)
|
||||
sale_text = db.Column(db.String(15000), nullable=True)
|
||||
added = db.Column(db.DateTime(timezone=True), server_default=func.now())
|
||||
|
||||
|
||||
@@ -48,6 +49,7 @@ class ProductsDetails(db.Model):
|
||||
'id': self.id,
|
||||
'product_id': self.product_id,
|
||||
'details': self.details,
|
||||
'sale_text':self.sale_text,
|
||||
'added': self.added
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user