Add new codes for contest

Task examples:


W4W-71


W4W-73

Instructions:

  1. Insert codes that was in file to the database table wp_promocodes

  2. There are 2 tables of the relations wp_promocode_post / wp_2_promocode_post for german and french versions. You need to fill these tables with relevant promocodes and post ids. Sql example:

INSERT INTO wp_promocode_post (promocode_id, post_id)
        SELECT wp_promocodes.id, 2
        FROM wp_promocodes
        ORDER BY wp_promocodes.id DESC
        LIMIT 4000;

3. Condition should be modified in the save_db file / 90 row. (in future after refactor this step can be skipped)

For testing on stage firstly you need to add 2 contests (with coupons) for each version of site and then do above instruction.

Comments

Leave a Reply