This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
async fetch(request) { | |
const botUserAgents = new Map([ | |
[/botUserAgent1/i, "bot=bot1"], | |
[/botUserAgent2/i, "bot=bot2"], | |
[/botUserAgent3/i, "bot=bot3"] | |
]); | |
const userAgent = request.headers.get('User-Agent'); | |
if (userAgent) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-ANG" where entity_id = 291899; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-ANR" where entity_id = 291900; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-BCF" where entity_id = 291901; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-BGL" where entity_id = 291902; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-BKG" where entity_id = 291903; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-BKM" where entity_id = 291904; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-BKT" where entity_id = 291905; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-BOR" where entity_id = 291906; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-BRK" where entity_id = 291907; | |
UPDATE catalog_product_entity set sku = "LUP-FL-010BN-BRT" where entity_id = 291908; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmlrpclib | |
import random | |
class Magento(object): | |
URL = 'https://www.yoursitehere.com/index.php/api/xmlrpc' | |
usr = 'usernamehere' | |
passwd = 'password' | |
svr = '' | |
token = '' |